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{})
| 152 | // ErrorIsf asserts that at least one of the errors in err's chain matches target. |
| 153 | // This is a wrapper for errors.Is. |
| 154 | func ErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) bool { |
| 155 | if h, ok := t.(tHelper); ok { |
| 156 | h.Helper() |
| 157 | } |
| 158 | return ErrorIs(t, err, target, append([]interface{}{msg}, args...)...) |
| 159 | } |
| 160 | |
| 161 | // Eventuallyf asserts that given condition will be met in waitFor time, |
| 162 | // periodically checking target function each tick. |