MCPcopy
hub / github.com/sideshow/apns2 / TestClientBadTransportError

Function TestClientBadTransportError

client_test.go:98–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func 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
107func TestClientBadDeviceToken(t *testing.T) {
108 n := &apns.Notification{}

Callers

nothing calls this directly

Calls 3

mockNotificationFunction · 0.85
mockClientFunction · 0.85
PushMethod · 0.80

Tested by

no test coverage detected