MCPcopy Create free account
hub / github.com/Azure/peerd / TestMain

Function TestMain

pkg/cache/main_test.go:15–23  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

13var testFileCachePath string
14
15func TestMain(m *testing.M) {
16 setup()
17 code := m.Run()
18 err := teardown()
19 if code == 0 && err != nil {
20 code = 42
21 }
22 os.Exit(code)
23}
24
25func setup() {
26 // get current working directory

Callers

nothing calls this directly

Calls 2

setupFunction · 0.70
teardownFunction · 0.70

Tested by

no test coverage detected