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

Function mockClient

client_test.go:46–48  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

44}
45
46func mockClient(url string) *apns.Client {
47 return &apns.Client{Host: url, HTTPClient: http.DefaultClient}
48}
49
50type mockTransport struct {
51 *http2.Transport

Callers 15

TestClientBadUrlErrorFunction · 0.85
TestClientBadDeviceTokenFunction · 0.85
TestURLFunction · 0.85
TestDefaultHeadersFunction · 0.85
TestHeadersFunction · 0.85
TestExpirationHeaderFunction · 0.85
TestPushTypeAlertHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected