MCPcopy Index your code
hub / github.com/go-errors/errors / TestSkipWorks

Function TestSkipWorks

error_test.go:88–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestSkipWorks(t *testing.T) {
89
90 defer func() {
91 err := recover()
92 if err != 'a' {
93 t.Fatal(err)
94 }
95
96 bs := [][]uintptr{Wrap("hi", 2).stack, callersSkip(2)}
97
98 if err := compareStacks(bs[0], bs[1]); err != nil {
99 t.Errorf("Stack didn't match")
100 t.Errorf(err.Error())
101 }
102 }()
103
104 a()
105}
106
107func TestNew(t *testing.T) {
108

Callers

nothing calls this directly

Calls 5

WrapFunction · 0.85
callersSkipFunction · 0.85
compareStacksFunction · 0.85
aFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…