(t *testing.T)
| 229 | } |
| 230 | |
| 231 | func TestErrorContains(t *testing.T) { |
| 232 | t.Parallel() |
| 233 | |
| 234 | ErrorContains(t, errors.New("some error: another error"), "some error") |
| 235 | |
| 236 | mockT := new(MockT) |
| 237 | ErrorContains(mockT, errors.New("some error"), "different error") |
| 238 | if !mockT.Failed { |
| 239 | t.Error("Check should fail") |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | func TestEqualError(t *testing.T) { |
| 244 | t.Parallel() |
nothing calls this directly
no test coverage detected