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

Function ErrorIs

internal/testify/require/require.go:353–361  ·  view source on GitHub ↗

ErrorIs 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, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

351// ErrorIs asserts that at least one of the errors in err's chain matches target.
352// This is a wrapper for errors.Is.
353func ErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{}) {
354 if h, ok := t.(tHelper); ok {
355 h.Helper()
356 }
357 if assert.ErrorIs(t, err, target, msgAndArgs...) {
358 return
359 }
360 t.FailNow()
361}
362
363// ErrorIsf asserts that at least one of the errors in err's chain matches target.
364// This is a wrapper for errors.Is.

Callers 1

ErrorIsMethod · 0.70

Calls 3

ErrorIsFunction · 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…