(t *testing.T)
| 298 | } |
| 299 | |
| 300 | func TestPushTypeVOIPHeader(t *testing.T) { |
| 301 | n := mockNotification() |
| 302 | n.PushType = apns.PushTypeVOIP |
| 303 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 304 | assert.Equal(t, "voip", r.Header.Get("apns-push-type")) |
| 305 | })) |
| 306 | defer server.Close() |
| 307 | _, err := mockClient(server.URL).Push(n) |
| 308 | assert.NoError(t, err) |
| 309 | } |
| 310 | |
| 311 | func TestPushTypeComplicationHeader(t *testing.T) { |
| 312 | n := mockNotification() |
nothing calls this directly
no test coverage detected