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

Function TestMutableContent

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

Source from the content-addressed store, hash-verified

62}
63
64func TestMutableContent(t *testing.T) {
65 payload := NewPayload().MutableContent()
66 b, _ := json.Marshal(payload)
67 assert.Equal(t, `{"aps":{"mutable-content":1}}`, string(b))
68}
69
70func TestCustom(t *testing.T) {
71 payload := NewPayload().Custom("key", "val")

Callers

nothing calls this directly

Calls 2

NewPayloadFunction · 0.85
MutableContentMethod · 0.80

Tested by

no test coverage detected