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

Function NotErrorIsf

internal/testify/require/require.go:1537–1545  ·  view source on GitHub ↗

NotErrorIsf 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, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1535// NotErrorIsf asserts that at none of the errors in err's chain matches target.
1536// This is a wrapper for errors.Is.
1537func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) {
1538 if h, ok := t.(tHelper); ok {
1539 h.Helper()
1540 }
1541 if assert.NotErrorIsf(t, err, target, msg, args...) {
1542 return
1543 }
1544 t.FailNow()
1545}
1546
1547// NotImplements asserts that an object does not implement the specified interface.
1548//

Callers 1

NotErrorIsfMethod · 0.70

Calls 3

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