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

Function ErrorIsf

internal/testify/require/require.go:365–373  ·  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

363// ErrorIsf asserts that at least one of the errors in err's chain matches target.
364// This is a wrapper for errors.Is.
365func ErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) {
366 if h, ok := t.(tHelper); ok {
367 h.Helper()
368 }
369 if assert.ErrorIsf(t, err, target, msg, args...) {
370 return
371 }
372 t.FailNow()
373}
374
375// Errorf asserts that a function returned an error (i.e. not `nil`).
376//

Callers 1

ErrorIsfMethod · 0.70

Calls 3

ErrorIsfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…