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{})
| 624 | // NotErrorAsf asserts that none of the errors in err's chain matches target, |
| 625 | // but if so, sets target to that error value. |
| 626 | func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{}) bool { |
| 627 | if h, ok := t.(tHelper); ok { |
| 628 | h.Helper() |
| 629 | } |
| 630 | return NotErrorAs(t, err, target, append([]interface{}{msg}, args...)...) |
| 631 | } |
| 632 | |
| 633 | // NotErrorIsf asserts that none of the errors in err's chain matches target. |
| 634 | // This is a wrapper for errors.Is. |
no test coverage detected