(t *testing.T)
| 287 | } |
| 288 | |
| 289 | func TestPushTypeLocationHeader(t *testing.T) { |
| 290 | n := mockNotification() |
| 291 | n.PushType = apns.PushTypeLocation |
| 292 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 293 | assert.Equal(t, "location", r.Header.Get("apns-push-type")) |
| 294 | })) |
| 295 | defer server.Close() |
| 296 | _, err := mockClient(server.URL).Push(n) |
| 297 | assert.NoError(t, err) |
| 298 | } |
| 299 | |
| 300 | func TestPushTypeVOIPHeader(t *testing.T) { |
| 301 | n := mockNotification() |
nothing calls this directly
no test coverage detected