MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / TestMain

Function TestMain

main_test.go:39–50  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

37)
38
39func TestMain(m *testing.M) {
40 log.SuppressOutput(true)
41 retCode := m.Run()
42 log.SuppressOutput(false)
43 if err := os.RemoveAll(testDir); err != nil {
44 log.Fatalf("cannot remove %q: %s", testDir, err)
45 }
46 if redisClient != nil {
47 redisClient.Close()
48 }
49 os.Exit(retCode)
50}
51
52var redisClient *miniredis.Miniredis
53

Callers

nothing calls this directly

Calls 3

SuppressOutputFunction · 0.92
FatalfFunction · 0.92
CloseMethod · 0.45

Tested by

no test coverage detected