MCPcopy Create free account
hub / github.com/chain/txvm / TestWrapNil

Function TestWrapNil

errors/errors_test.go:50–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestWrapNil(t *testing.T) {
51 var err error
52
53 err1 := Wrap(err, "1")
54 if err1 != nil {
55 t.Fatal("wrapping nil error should yield nil")
56 }
57}
58
59func TestWrapf(t *testing.T) {
60 err := errors.New("0")

Callers

nothing calls this directly

Calls 1

WrapFunction · 0.85

Tested by

no test coverage detected