MCPcopy Create free account
hub / github.com/bracesdev/errtrace / TestWrapNil

Function TestWrapNil

errtrace_test.go:14–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestWrapNil(t *testing.T) {
15 if err := errtrace.Wrap(nil); err != nil {
16 t.Errorf("Wrap(): want nil, got %v", err)
17 }
18}
19
20func TestWrappedError(t *testing.T) {
21 orig := errors.New("foo")

Callers

nothing calls this directly

Calls 1

WrapFunction · 0.92

Tested by

no test coverage detected