NotErrorIs asserts that 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{})
| 1628 | // NotErrorIs asserts that none of the errors in err's chain matches target. |
| 1629 | // This is a wrapper for errors.Is. |
| 1630 | func NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{}) { |
| 1631 | if h, ok := t.(tHelper); ok { |
| 1632 | h.Helper() |
| 1633 | } |
| 1634 | if assert.NotErrorIs(t, err, target, msgAndArgs...) { |
| 1635 | return |
| 1636 | } |
| 1637 | t.FailNow() |
| 1638 | } |
| 1639 | |
| 1640 | // NotErrorIsf asserts that none of the errors in err's chain matches target. |
| 1641 | // This is a wrapper for errors.Is. |
no test coverage detected