(t *testing.T)
| 96 | } |
| 97 | |
| 98 | func TestClientBadTransportError(t *testing.T) { |
| 99 | n := mockNotification() |
| 100 | client := mockClient("badurl://badurl.com") |
| 101 | client.HTTPClient.Transport = nil |
| 102 | res, err := client.Push(n) |
| 103 | assert.Error(t, err) |
| 104 | assert.Nil(t, res) |
| 105 | } |
| 106 | |
| 107 | func TestClientBadDeviceToken(t *testing.T) { |
| 108 | n := &apns.Notification{} |
nothing calls this directly
no test coverage detected