ErrorIsf asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.
(t TestingT, err error, target error, msg string, args ...interface{})
| 159 | // ErrorIsf asserts that at least one of the errors in err's chain matches target. |
| 160 | // This is a wrapper for errors.Is. |
| 161 | func ErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) bool { |
| 162 | if h, ok := t.(tHelper); ok { |
| 163 | h.Helper() |
| 164 | } |
| 165 | return ErrorIs(t, err, target, append([]interface{}{msg}, args...)...) |
| 166 | } |
| 167 | |
| 168 | // Eventuallyf asserts that given condition will be met in waitFor time, |
| 169 | // periodically checking target function each tick. |