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

Function TestEmptyPayload

payload/builder_test.go:12–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestEmptyPayload(t *testing.T) {
13 payload := NewPayload()
14 b, _ := json.Marshal(payload)
15 assert.Equal(t, `{"aps":{}}`, string(b))
16}
17
18func TestAlert(t *testing.T) {
19 payload := NewPayload().Alert("hello")

Callers

nothing calls this directly

Calls 1

NewPayloadFunction · 0.85

Tested by

no test coverage detected