(t *testing.T)
| 110 | } |
| 111 | |
| 112 | func TestWrappedError_IsCompatibleWithErrorsUnwrap(t *testing.T) { |
| 113 | inner := errors.New("inner error") |
| 114 | err := Wrap(errors.New("outer"), inner) |
| 115 | actual := errors.Unwrap(err) |
| 116 | if actual != inner { |
| 117 | t.Fatal("wrappedError did not unwrap to inner") |
| 118 | } |
| 119 | } |