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

Function TestMain

auth/auth_test.go:17–24  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

15}
16
17func TestMain(m *testing.M) {
18 if err := srv.Start(context.Background()); err != nil {
19 panic(err)
20 }
21 defer os.Exit(m.Run())
22
23 srv.Close()
24}
25
26func TestCmdAuth(t *testing.T) {
27 t.Run("auth", func(t *testing.T) {

Callers

nothing calls this directly

Calls 3

RunMethod · 0.65
StartMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected