MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / TestMain

Function TestMain

authorization/api_test.go:216–224  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

214}
215
216func TestMain(m *testing.M) {
217 d := &TestPlugin{}
218 h := NewHandler(d)
219 go h.ServeTCP("test", "localhost:32456", "", nil)
220
221 callURL("http://localhost:32456/Plugin.Activate")
222
223 os.Exit(m.Run())
224}

Callers

nothing calls this directly

Calls 3

ServeTCPMethod · 0.95
NewHandlerFunction · 0.70
callURLFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…