(t *testing.T)
| 66 | } |
| 67 | |
| 68 | func TestClientManagerGetDefaultOptions(t *testing.T) { |
| 69 | manager := apns2.NewClientManager() |
| 70 | c1 := manager.Get(mockCert()) |
| 71 | c2 := manager.Get(mockCert()) |
| 72 | v1 := reflect.ValueOf(c1) |
| 73 | v2 := reflect.ValueOf(c2) |
| 74 | assert.NotNil(t, c1) |
| 75 | assert.Equal(t, v1.Pointer(), v2.Pointer()) |
| 76 | assert.Equal(t, 1, manager.Len()) |
| 77 | } |
| 78 | |
| 79 | func TestClientManagerGetNilClientFactory(t *testing.T) { |
| 80 | manager := apns2.NewClientManager() |
nothing calls this directly
no test coverage detected