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

Method NotErrorAsf

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

1283// NotErrorAsf asserts that none of the errors in err's chain matches target,
1284// but if so, sets target to that error value.
1285func (a *Assertions) NotErrorAsf(err error, target interface{}, msg string, args ...interface{}) {
1286 if h, ok := a.t.(tHelper); ok {
1287 h.Helper()
1288 }
1289 NotErrorAsf(a.t, err, target, msg, args...)
1290}
1291
1292// NotErrorIs asserts that none of the errors in err's chain matches target.
1293// 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