MCPcopy
hub / github.com/expr-lang/expr / ErrorIsf

Function ErrorIsf

internal/testify/assert/assertion_format.go:154–159  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

152// ErrorIsf asserts that at least one of the errors in err's chain matches target.
153// This is a wrapper for errors.Is.
154func 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.

Callers 2

ErrorIsfFunction · 0.92
ErrorIsfMethod · 0.70

Calls 2

ErrorIsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…