(t *testing.T)
| 309 | } |
| 310 | |
| 311 | func TestPushTypeComplicationHeader(t *testing.T) { |
| 312 | n := mockNotification() |
| 313 | n.PushType = apns.PushTypeComplication |
| 314 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 315 | assert.Equal(t, "complication", r.Header.Get("apns-push-type")) |
| 316 | })) |
| 317 | defer server.Close() |
| 318 | _, err := mockClient(server.URL).Push(n) |
| 319 | assert.NoError(t, err) |
| 320 | } |
| 321 | |
| 322 | func TestPushTypeFileProviderHeader(t *testing.T) { |
| 323 | n := mockNotification() |
nothing calls this directly
no test coverage detected