MCPcopy Index your code
hub / github.com/bytebase/bytebase / TestTakeStacktrace

Function TestTakeStacktrace

backend/common/stacktrace/stack_test.go:10–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestTakeStacktrace(t *testing.T) {
11 buf := TakeStacktrace(10, 0)
12 lines := strings.Split(string(buf), "\n")
13 require.Contains(t, lines[0], "TestTakeStacktrace")
14 require.Contains(t, lines[1], "stack_test.go:11")
15 require.Contains(t, lines[2], "testing")
16 require.Contains(t, lines[3], "testing.go")
17}

Callers

nothing calls this directly

Calls 1

TakeStacktraceFunction · 0.85

Tested by

no test coverage detected