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

Method NotErrorAsf

assert/assertion_forward.go:1284–1289  ·  view source on GitHub ↗

NotErrorAsf asserts that none of the errors in err's chain matches target, but if so, sets target to that error value.

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

Source from the content-addressed store, hash-verified

1282// NotErrorAsf asserts that none of the errors in err's chain matches target,
1283// but if so, sets target to that error value.
1284func (a *Assertions) NotErrorAsf(err error, target interface{}, msg string, args ...interface{}) bool {
1285 if h, ok := a.t.(tHelper); ok {
1286 h.Helper()
1287 }
1288 return NotErrorAsf(a.t, err, target, msg, args...)
1289}
1290
1291// NotErrorIs asserts that none of the errors in err's chain matches target.
1292// This is a wrapper for errors.Is.

Callers

nothing calls this directly

Calls 2

NotErrorAsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected