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{})
| 642 | // NotErrorAsf asserts that none of the errors in err's chain matches target, |
| 643 | // but if so, sets target to that error value. |
| 644 | func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{}) bool { |
| 645 | if h, ok := t.(tHelper); ok { |
| 646 | h.Helper() |
| 647 | } |
| 648 | return NotErrorAs(t, err, target, append([]interface{}{msg}, args...)...) |
| 649 | } |
| 650 | |
| 651 | // NotErrorIsf asserts that none of the errors in err's chain matches target. |
| 652 | // This is a wrapper for errors.Is. |
no test coverage detected