MCPcopy Index your code
hub / github.com/go-git/go-git / TestMain

Function TestMain

utils/trace/trace_test.go:10–15  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

8)
9
10func TestMain(m *testing.M) {
11 defer SetLogger(newLogger())
12 if code := m.Run(); code != 0 {
13 panic(code)
14 }
15}
16
17func setUpTest(t testing.TB, buf *bytes.Buffer) {
18 t.Cleanup(func() {

Callers

nothing calls this directly

Calls 2

SetLoggerFunction · 0.85
newLoggerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…