MCPcopy
hub / github.com/expr-lang/expr / ErrorIs

Method ErrorIs

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

280// ErrorIs asserts that at least one of the errors in err's chain matches target.
281// This is a wrapper for errors.Is.
282func (a *Assertions) ErrorIs(err error, target error, msgAndArgs ...interface{}) bool {
283 if h, ok := a.t.(tHelper); ok {
284 h.Helper()
285 }
286 return ErrorIs(a.t, err, target, msgAndArgs...)
287}
288
289// ErrorIsf asserts that at least one of the errors in err's chain matches target.
290// 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