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

Function TestWrapMsg

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

WrapFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected