MCPcopy Index your code
hub / github.com/expr-lang/expr / ErrorIsf

Method ErrorIsf

internal/testify/assert/assertion_forward.go:291–296  ·  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.

(err error, target error, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

289// ErrorIsf asserts that at least one of the errors in err's chain matches target.
290// This is a wrapper for errors.Is.
291func (a *Assertions) ErrorIsf(err error, target error, msg string, args ...interface{}) bool {
292 if h, ok := a.t.(tHelper); ok {
293 h.Helper()
294 }
295 return ErrorIsf(a.t, err, target, msg, args...)
296}
297
298// Errorf asserts that a function returned an error (i.e. not `nil`).
299//

Callers

nothing calls this directly

Calls 2

ErrorIsfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected