(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestUnwrap(t *testing.T) { |
| 13 | tt := testutils.T{t} |
| 14 | |
| 15 | e := fmt.Errorf("foo %w %w", fmt.Errorf("bar"), fmt.Errorf("baz")) |
| 16 | |
| 17 | // Compatibility with go 1.20: Unwrap() on a multierror returns nil |
| 18 | // (per API documentation) |
| 19 | tt.Check(errors.Unwrap(e) == nil) |
| 20 | } |
| 21 | |
| 22 | // More detailed testing of Join is in datadriven_test.go. Here we make |
| 23 | // sure that the public API includes the stacktrace wrapper. |