Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
10
func
TestMain(m *testing.M) {
11
defer
SetLogger(newLogger())
12
if
code := m.Run(); code != 0 {
13
panic(code)
14
}
15
}
16
17
func
setUpTest(t testing.TB, buf *bytes.Buffer) {
18
t.Cleanup(
func
() {
Callers
nothing calls this directly
Calls
2
SetLogger
Function · 0.85
newLogger
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…