(t *testing.T)
| 241 | } |
| 242 | |
| 243 | func TestErrorContainsWrapper(t *testing.T) { |
| 244 | t.Parallel() |
| 245 | |
| 246 | require := New(t) |
| 247 | require.ErrorContains(errors.New("some error: another error"), "some error") |
| 248 | |
| 249 | mockT := new(MockT) |
| 250 | mockRequire := New(mockT) |
| 251 | mockRequire.ErrorContains(errors.New("some error: another error"), "different error") |
| 252 | if !mockT.Failed { |
| 253 | t.Error("Check should fail") |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | func TestEqualErrorWrapper(t *testing.T) { |
| 258 | t.Parallel() |
nothing calls this directly
no test coverage detected