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

Method NotErrorIsf

assert/assertion_forward.go:1302–1307  ·  view source on GitHub ↗

NotErrorIsf asserts that none of the errors in err's chain matches target. This is a wrapper for errors.Is.

(err error, target error, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1300// NotErrorIsf asserts that none of the errors in err's chain matches target.
1301// This is a wrapper for errors.Is.
1302func (a *Assertions) NotErrorIsf(err error, target error, msg string, args ...interface{}) bool {
1303 if h, ok := a.t.(tHelper); ok {
1304 h.Helper()
1305 }
1306 return NotErrorIsf(a.t, err, target, msg, args...)
1307}
1308
1309// NotImplements asserts that an object does not implement the specified interface.
1310//

Callers

nothing calls this directly

Calls 2

NotErrorIsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected