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

Method NotErrorAs

require/require_forward.go:1276–1281  ·  view source on GitHub ↗

NotErrorAs 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{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1274// NotErrorAs asserts that none of the errors in err's chain matches target,
1275// but if so, sets target to that error value.
1276func (a *Assertions) NotErrorAs(err error, target interface{}, msgAndArgs ...interface{}) {
1277 if h, ok := a.t.(tHelper); ok {
1278 h.Helper()
1279 }
1280 NotErrorAs(a.t, err, target, msgAndArgs...)
1281}
1282
1283// NotErrorAsf asserts that none of the errors in err's chain matches target,
1284// but if so, sets target to that error value.

Callers

nothing calls this directly

Calls 2

NotErrorAsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected