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

Function TestSound

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

Source from the content-addressed store, hash-verified

40}
41
42func TestSound(t *testing.T) {
43 payload := NewPayload().Sound("Default.caf")
44 b, _ := json.Marshal(payload)
45 assert.Equal(t, `{"aps":{"sound":"Default.caf"}}`, string(b))
46}
47
48func TestSoundDictionary(t *testing.T) {
49 payload := NewPayload().Sound(map[string]interface{}{

Callers

nothing calls this directly

Calls 2

NewPayloadFunction · 0.85
SoundMethod · 0.80

Tested by

no test coverage detected