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{})
| 297 | // ErrorIs asserts that at least one of the errors in err's chain matches target. |
| 298 | // This is a wrapper for errors.Is. |
| 299 | func (a *Assertions) ErrorIs(err error, target error, msgAndArgs ...interface{}) { |
| 300 | if h, ok := a.t.(tHelper); ok { |
| 301 | h.Helper() |
| 302 | } |
| 303 | ErrorIs(a.t, err, target, msgAndArgs...) |
| 304 | } |
| 305 | |
| 306 | // ErrorIsf asserts that at least one of the errors in err's chain matches target. |
| 307 | // This is a wrapper for errors.Is. |