NotErrorAs 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{}, msgAndArgs ...interface{})
| 1604 | // NotErrorAs asserts that none of the errors in err's chain matches target, |
| 1605 | // but if so, sets target to that error value. |
| 1606 | func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{}) { |
| 1607 | if h, ok := t.(tHelper); ok { |
| 1608 | h.Helper() |
| 1609 | } |
| 1610 | if assert.NotErrorAs(t, err, target, msgAndArgs...) { |
| 1611 | return |
| 1612 | } |
| 1613 | t.FailNow() |
| 1614 | } |
| 1615 | |
| 1616 | // NotErrorAsf asserts that none of the errors in err's chain matches target, |
| 1617 | // but if so, sets target to that error value. |
no test coverage detected