NotErrorAsf asserts that none of the errors in err's chain matches target, but if so, sets target to that error value.
(t TestingT, err error, target interface{}, msg string, args ...interface{})
| 1616 | // NotErrorAsf asserts that none of the errors in err's chain matches target, |
| 1617 | // but if so, sets target to that error value. |
| 1618 | func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{}) { |
| 1619 | if h, ok := t.(tHelper); ok { |
| 1620 | h.Helper() |
| 1621 | } |
| 1622 | if assert.NotErrorAsf(t, err, target, msg, args...) { |
| 1623 | return |
| 1624 | } |
| 1625 | t.FailNow() |
| 1626 | } |
| 1627 | |
| 1628 | // NotErrorIs asserts that none of the errors in err's chain matches target. |
| 1629 | // This is a wrapper for errors.Is. |
no test coverage detected