MCPcopy
hub / github.com/tinylib/msgp / TestWrapMultiple

Function TestWrapMultiple

msgp/errors_test.go:54–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

52}
53
54func TestWrapMultiple(t *testing.T) {
55 err := &TypeError{}
56 w := WrapError(WrapError(err, "b"), "a")
57 expected := `msgp: attempted to decode type "<invalid>" with method for "<invalid>" at a/b`
58 if expected != w.Error() {
59 t.Fatal()
60 }
61}
62
63func TestCause(t *testing.T) {
64 for idx, err := range []error{

Callers

nothing calls this directly

Calls 2

WrapErrorFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…