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

Method ErrorIs

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

(err error, target error, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

282// ErrorIs asserts that at least one of the errors in err's chain matches target.
283// This is a wrapper for errors.Is.
284func (a *Assertions) ErrorIs(err error, target error, msgAndArgs ...interface{}) {
285 if h, ok := a.t.(tHelper); ok {
286 h.Helper()
287 }
288 ErrorIs(a.t, err, target, msgAndArgs...)
289}
290
291// ErrorIsf asserts that at least one of the errors in err's chain matches target.
292// This is a wrapper for errors.Is.

Callers

nothing calls this directly

Calls 2

ErrorIsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected