MCPcopy Create free account
hub / github.com/stretchr/testify / NotErrorIsf

Function NotErrorIsf

assert/assertion_format.go:635–640  ·  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

633// NotErrorIsf asserts that none of the errors in err's chain matches target.
634// This is a wrapper for errors.Is.
635func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) bool {
636 if h, ok := t.(tHelper); ok {
637 h.Helper()
638 }
639 return NotErrorIs(t, err, target, append([]interface{}{msg}, args...)...)
640}
641
642// NotImplementsf asserts that an object does not implement the specified interface.
643//

Callers 2

NotErrorIsfFunction · 0.92
NotErrorIsfMethod · 0.70

Calls 2

NotErrorIsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected