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

Function TestClientManagerAddTwice

client_manager_test.go:144–149  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

142}
143
144func TestClientManagerAddTwice(t *testing.T) {
145 manager := apns2.NewClientManager()
146 manager.Add(apns2.NewClient(mockCert()))
147 manager.Add(apns2.NewClient(mockCert()))
148 assert.Equal(t, 1, manager.Len())
149}

Callers

nothing calls this directly

Calls 5

AddMethod · 0.95
LenMethod · 0.95
NewClientManagerFunction · 0.92
NewClientFunction · 0.92
mockCertFunction · 0.85

Tested by

no test coverage detected