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

Method NotErrorAs

assert/assertion_forward.go:1275–1280  ·  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

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