MCPcopy
hub / github.com/cloudflare/cloudflared / TestManagerDuplicate

Function TestManagerDuplicate

overwatch/manager_test.go:56–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestManagerDuplicate(t *testing.T) {
57 m := NewAppManager(nil)
58
59 first := &mockService{serviceName: "first", serviceType: "mock"}
60 m.Add(first)
61 m.Add(first)
62 assert.Len(t, m.Services(), 1, "expected 1 service in the list")
63}
64
65func TestManagerErrorChannel(t *testing.T) {
66 errChan := make(chan error)

Callers

nothing calls this directly

Calls 4

AddMethod · 0.95
ServicesMethod · 0.95
NewAppManagerFunction · 0.85
LenMethod · 0.80

Tested by

no test coverage detected