(t *testing.T)
| 209 | } |
| 210 | |
| 211 | func TestErrorContains(t *testing.T) { |
| 212 | |
| 213 | ErrorContains(t, errors.New("some error: another error"), "some error") |
| 214 | |
| 215 | mockT := new(MockT) |
| 216 | ErrorContains(mockT, errors.New("some error"), "different error") |
| 217 | if !mockT.Failed { |
| 218 | t.Error("Check should fail") |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | func TestEqualError(t *testing.T) { |
| 223 |
nothing calls this directly
no test coverage detected
searching dependent graphs…