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

Function NotErrorIsf

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

651// NotErrorIsf asserts that none of the errors in err's chain matches target.
652// This is a wrapper for errors.Is.
653func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) bool {
654 if h, ok := t.(tHelper); ok {
655 h.Helper()
656 }
657 return NotErrorIs(t, err, target, append([]interface{}{msg}, args...)...)
658}
659
660// NotImplementsf asserts that an object does not implement the specified interface.
661//

Callers 2

NotErrorIsfFunction · 0.92
NotErrorIsfMethod · 0.70

Calls 2

NotErrorIsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected