MCPcopy
hub / github.com/stretchr/testify / NotErrorIsf

Function NotErrorIsf

require/require.go:1642–1650  ·  view source on GitHub ↗

NotErrorIsf asserts that 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

1640// NotErrorIsf asserts that none of the errors in err's chain matches target.
1641// This is a wrapper for errors.Is.
1642func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) {
1643 if h, ok := t.(tHelper); ok {
1644 h.Helper()
1645 }
1646 if assert.NotErrorIsf(t, err, target, msg, args...) {
1647 return
1648 }
1649 t.FailNow()
1650}
1651
1652// NotImplements asserts that an object does not implement the specified interface.
1653//

Callers 1

NotErrorIsfMethod · 0.70

Calls 3

NotErrorIsfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected