func TestMain(m *testing.M) { … } type T … func (t *T) ptrmethod() []byte { … } func (t T) method() []byte { … } /* The traceback should look something like this, modulo line numbers and hex constants. Don't worry much about the base levels, but check the ones in our own package. goroutine 10 [running]: runtime/debug.Stack(0x0, 0x0, 0x0) /Users/r/go/src/runtime/debug/stack.go:28 +0x80 runtime/debug.(*T).ptrmethod(0xc82005ee70, 0x0, 0x0, 0x0) /Users/r/go/src/runtime/debug/stack_test.go:15 +0x29 runtime/debug.T.method(0x0, 0x0, 0x0, 0x0) /Users/r/go/src/runtime/debug/stack_test.go:18 +0x32 runtime/debug.TestStack(0xc8201ce000) /Users/r/go/src/runtime/debug/stack_test.go:37 +0x38 testing.tRunner(0xc8201ce000, 0x664b58) /Users/r/go/src/testing/testing.go:456 +0x98 created by testing.RunTests /Users/r/go/src/testing/testing.go:561 +0x86d */ func TestStack(t *testing.T) { … } func TestSetCrashOutput(t *testing.T) { … }