MCPcopy Create free account
hub / github.com/anchordotdev/cli / TestMain

Function TestMain

component/component_test.go:16–24  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

14}
15
16func TestMain(m *testing.M) {
17 if err := srv.Start(context.Background()); err != nil {
18 panic(err)
19 }
20
21 defer os.Exit(m.Run())
22
23 srv.Close()
24}

Callers

nothing calls this directly

Calls 3

RunMethod · 0.65
StartMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected