(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestErrorChainCompat(t *testing.T) { |
| 13 | err := stderrors.New("error that gets wrapped") |
| 14 | wrapped := Wrap(err, "wrapped up") |
| 15 | if !stderrors.Is(wrapped, err) { |
| 16 | t.Errorf("Wrap does not support Go 1.13 error chains") |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | func TestIs(t *testing.T) { |
| 21 | err := New("test") |
nothing calls this directly
no test coverage detected
searching dependent graphs…