(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func 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 | |
| 63 | func TestCause(t *testing.T) { |
| 64 | for idx, err := range []error{ |