Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
46
func
mockClient(url string) *apns.Client {
47
return
&apns.Client{Host: url, HTTPClient: http.DefaultClient}
48
}
49
50
type
mockTransport
struct
{
51
*http2.Transport
Callers
15
TestClientBadUrlError
Function · 0.85
TestClientBadTransportError
Function · 0.85
TestClientBadDeviceToken
Function · 0.85
TestURL
Function · 0.85
TestDefaultHeaders
Function · 0.85
TestClientPushWithContextWithTimeout
Function · 0.85
TestClientPushWithContext
Function · 0.85
TestClientPushWithNilContext
Function · 0.85
TestHeaders
Function · 0.85
TestExpirationHeader
Function · 0.85
TestPushTypeAlertHeader
Function · 0.85
TestPushTypeBackgroundHeader
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected