ErrorIsf asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.
(err error, target error, msg string, args ...interface{})
| 289 | // ErrorIsf asserts that at least one of the errors in err's chain matches target. |
| 290 | // This is a wrapper for errors.Is. |
| 291 | func (a *Assertions) ErrorIsf(err error, target error, msg string, args ...interface{}) bool { |
| 292 | if h, ok := a.t.(tHelper); ok { |
| 293 | h.Helper() |
| 294 | } |
| 295 | return ErrorIsf(a.t, err, target, msg, args...) |
| 296 | } |
| 297 | |
| 298 | // Errorf asserts that a function returned an error (i.e. not `nil`). |
| 299 | // |