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