NotErrorIs asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.
(t TestingT, err error, target error, msgAndArgs ...interface{})
| 1523 | // NotErrorIs asserts that at none of the errors in err's chain matches target. |
| 1524 | // This is a wrapper for errors.Is. |
| 1525 | func NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{}) { |
| 1526 | if h, ok := t.(tHelper); ok { |
| 1527 | h.Helper() |
| 1528 | } |
| 1529 | if assert.NotErrorIs(t, err, target, msgAndArgs...) { |
| 1530 | return |
| 1531 | } |
| 1532 | t.FailNow() |
| 1533 | } |
| 1534 | |
| 1535 | // NotErrorIsf asserts that at none of the errors in err's chain matches target. |
| 1536 | // This is a wrapper for errors.Is. |
no test coverage detected
searching dependent graphs…