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

Function NotErrorIs

internal/testify/require/require.go:1525–1533  ·  view source on GitHub ↗

NotErrorIs asserts that at none 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

1523// NotErrorIs asserts that at none of the errors in err's chain matches target.
1524// This is a wrapper for errors.Is.
1525func NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{}) {
1526 if h, ok := t.(tHelper); ok {
1527 h.Helper()
1528 }
1529 if assert.NotErrorIs(t, err, target, msgAndArgs...) {
1530 return
1531 }
1532 t.FailNow()
1533}
1534
1535// NotErrorIsf asserts that at none of the errors in err's chain matches target.
1536// This is a wrapper for errors.Is.

Callers 1

NotErrorIsMethod · 0.70

Calls 3

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