ErrorIs 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, msgAndArgs ...interface{})
| 282 | // ErrorIs asserts that at least one of the errors in err's chain matches target. |
| 283 | // This is a wrapper for errors.Is. |
| 284 | func (a *Assertions) ErrorIs(err error, target error, msgAndArgs ...interface{}) { |
| 285 | if h, ok := a.t.(tHelper); ok { |
| 286 | h.Helper() |
| 287 | } |
| 288 | ErrorIs(a.t, err, target, msgAndArgs...) |
| 289 | } |
| 290 | |
| 291 | // ErrorIsf asserts that at least one of the errors in err's chain matches target. |
| 292 | // This is a wrapper for errors.Is. |