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

Method ErrorIsf

internal/testify/require/require_forward.go:293–298  ·  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

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

Callers

nothing calls this directly

Calls 2

ErrorIsfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected