(t *testing.T)
| 56 | } |
| 57 | |
| 58 | func TestAdaptGoSingleWrapErr(t *testing.T) { |
| 59 | origErr := fmt.Errorf("an error %w", goErr.New("hello")) |
| 60 | t.Logf("start err: %# v", pretty.Formatter(origErr)) |
| 61 | |
| 62 | newErr := network(t, origErr) |
| 63 | |
| 64 | tt := testutils.T{T: t} |
| 65 | // The library preserves the cause. It's not possible to preserve the fmt |
| 66 | // string. |
| 67 | tt.CheckEqual(newErr.Error(), origErr.Error()) |
| 68 | tt.CheckContains(newErr.Error(), "hello") |
| 69 | } |
| 70 | |
| 71 | func TestAdaptBaseGoJoinErr(t *testing.T) { |
| 72 | origErr := goErr.Join(goErr.New("hello"), goErr.New("world")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…