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{})
| 305 | // ErrorIsf asserts that at least one of the errors in err's chain matches target. |
| 306 | // This is a wrapper for errors.Is. |
| 307 | func (a *Assertions) ErrorIsf(err error, target error, msg string, args ...interface{}) bool { |
| 308 | if h, ok := a.t.(tHelper); ok { |
| 309 | h.Helper() |
| 310 | } |
| 311 | return ErrorIsf(a.t, err, target, msg, args...) |
| 312 | } |
| 313 | |
| 314 | // Errorf asserts that a function returned an error (i.e. not `nil`). |
| 315 | // |