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

Function mockNotification

client_test.go:29–34  ·  view source on GitHub ↗

Mocks

()

Source from the content-addressed store, hash-verified

27// Mocks
28
29func mockNotification() *apns.Notification {
30 n := &apns.Notification{}
31 n.DeviceToken = "11aa01229f15f0f0c52029d8cf8cd0aeaf2365fe4cebc4af26cd6d76b7919ef7"
32 n.Payload = []byte(`{"aps":{"alert":"Hello!"}}`)
33 return n
34}
35
36func mockToken() *token.Token {
37 pubkeyCurve := elliptic.P256()

Callers 15

TestClientBadUrlErrorFunction · 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