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

Method NotErrorIs

require/require_forward.go:1294–1299  ·  view source on GitHub ↗

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

(err error, target error, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1292// NotErrorIs asserts that none of the errors in err's chain matches target.
1293// This is a wrapper for errors.Is.
1294func (a *Assertions) NotErrorIs(err error, target error, msgAndArgs ...interface{}) {
1295 if h, ok := a.t.(tHelper); ok {
1296 h.Helper()
1297 }
1298 NotErrorIs(a.t, err, target, msgAndArgs...)
1299}
1300
1301// NotErrorIsf asserts that none of the errors in err's chain matches target.
1302// This is a wrapper for errors.Is.

Callers

nothing calls this directly

Calls 2

NotErrorIsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected