()
| 17 | |
| 18 | func (e testWrapperError) Error() string { return "wrap" } |
| 19 | func (e testWrapperError) Unwrap() error { return e.inner } |
| 20 | |
| 21 | func TestErrorClass_SkipsFmtWrappers(t *testing.T) { |
| 22 | wrapped := fmt.Errorf("outer: %w", fmt.Errorf("inner: %w", testRootError{})) |