MCPcopy Index your code
hub / github.com/bracesdev/errtrace / TestUnwrapFrame_badPC

Function TestUnwrapFrame_badPC

unwrap_test.go:66–76  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func TestUnwrapFrame_badPC(t *testing.T) {
67 giveErr := errors.New("great sadness")
68 _, inner, ok := UnwrapFrame(wrap(giveErr, 0))
69 if got, want := ok, false; got != want {
70 t.Errorf("ok: got %v, want %v", got, want)
71 }
72
73 if got, want := inner, giveErr; got != want {
74 t.Errorf("inner: got %v, want %v", inner, giveErr)
75 }
76}
77
78type customTraceError struct {
79 err error

Callers

nothing calls this directly

Calls 2

UnwrapFrameFunction · 0.85
wrapFunction · 0.70

Tested by

no test coverage detected