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

Function TestWrapMsg

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

Source from the content-addressed store, hash-verified

65}
66
67func TestWrapMsg(t *testing.T) {
68 err := errors.New("rooti")
69 err1 := Wrap(err, "cherry", " ", "guava")
70 if err1.Error() != "cherry guava: rooti" {
71 t.Fatalf("err msg = %s want 'cherry guava: rooti'", err1.Error())
72 }
73}
74
75func TestDetail(t *testing.T) {
76 root := errors.New("foo")

Callers

nothing calls this directly

Calls 2

WrapFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected