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

Method NotErrorIsf

require/require_forward.go:1303–1308  ·  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

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

Callers

nothing calls this directly

Calls 2

NotErrorIsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected