diff --git a/assert/assertion_format.go b/assert/assertion_format.go index 1db39550..2dff9e45 100644 --- a/assert/assertion_format.go +++ b/assert/assertion_format.go @@ -621,8 +621,7 @@ func NotEqualValuesf(t TestingT, expected interface{}, actual interface{}, msg s return NotEqualValues(t, expected, actual, append([]interface{}{msg}, args...)...) } -// NotErrorAsf asserts that at none of the errors in err's chain matches target. -// This is the inverse of the ErrorAs function. +// NotErrorAsf asserts that none of the errors in err's chain matches target. func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{}) bool { if h, ok := t.(tHelper); ok { h.Helper() diff --git a/assert/assertion_forward.go b/assert/assertion_forward.go index a658b4db..7bcc9f07 100644 --- a/assert/assertion_forward.go +++ b/assert/assertion_forward.go @@ -1234,8 +1234,7 @@ func (a *Assertions) NotEqualf(expected interface{}, actual interface{}, msg str return NotEqualf(a.t, expected, actual, msg, args...) } -// NotErrorAs asserts that at none of the errors in err's chain matches target. -// This is the inverse of the ErrorAs function. +// NotErrorAs asserts that none of the errors in err's chain matches target. func (a *Assertions) NotErrorAs(err error, target interface{}, msgAndArgs ...interface{}) bool { if h, ok := a.t.(tHelper); ok { h.Helper() @@ -1243,8 +1242,7 @@ func (a *Assertions) NotErrorAs(err error, target interface{}, msgAndArgs ...int return NotErrorAs(a.t, err, target, msgAndArgs...) } -// NotErrorAsf asserts that at none of the errors in err's chain matches target. -// This is the inverse of the ErrorAs function. +// NotErrorAsf asserts that none of the errors in err's chain matches target. func (a *Assertions) NotErrorAsf(err error, target interface{}, msg string, args ...interface{}) bool { if h, ok := a.t.(tHelper); ok { h.Helper() diff --git a/assert/assertions.go b/assert/assertions.go index 5ace3d49..4ebe3027 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -2149,8 +2149,7 @@ func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{ ), msgAndArgs...) } -// NotErrorAs asserts that at none of the errors in err's chain matches target. -// This is the inverse of the ErrorAs function. +// NotErrorAs asserts that none of the errors in err's chain matches target. func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{}) bool { if h, ok := t.(tHelper); ok { h.Helper() diff --git a/require/require.go b/require/require.go index bf9877cf..9871d085 100644 --- a/require/require.go +++ b/require/require.go @@ -1559,8 +1559,7 @@ func NotEqualf(t TestingT, expected interface{}, actual interface{}, msg string, t.FailNow() } -// NotErrorAs asserts that at none of the errors in err's chain matches target. -// This is the inverse of the ErrorAs function. +// NotErrorAs asserts that none of the errors in err's chain matches target. func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{}) { if h, ok := t.(tHelper); ok { h.Helper() @@ -1571,8 +1570,7 @@ func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interfa t.FailNow() } -// NotErrorAsf asserts that at none of the errors in err's chain matches target. -// This is the inverse of the ErrorAs function. +// NotErrorAsf asserts that none of the errors in err's chain matches target. func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{}) { if h, ok := t.(tHelper); ok { h.Helper() diff --git a/require/require_forward.go b/require/require_forward.go index 521daaf1..34ac5331 100644 --- a/require/require_forward.go +++ b/require/require_forward.go @@ -1235,8 +1235,7 @@ func (a *Assertions) NotEqualf(expected interface{}, actual interface{}, msg str NotEqualf(a.t, expected, actual, msg, args...) } -// NotErrorAs asserts that at none of the errors in err's chain matches target. -// This is the inverse of the ErrorAs function. +// NotErrorAs asserts that none of the errors in err's chain matches target. func (a *Assertions) NotErrorAs(err error, target interface{}, msgAndArgs ...interface{}) { if h, ok := a.t.(tHelper); ok { h.Helper() @@ -1244,8 +1243,7 @@ func (a *Assertions) NotErrorAs(err error, target interface{}, msgAndArgs ...int NotErrorAs(a.t, err, target, msgAndArgs...) } -// NotErrorAsf asserts that at none of the errors in err's chain matches target. -// This is the inverse of the ErrorAs function. +// NotErrorAsf asserts that none of the errors in err's chain matches target. func (a *Assertions) NotErrorAsf(err error, target interface{}, msg string, args ...interface{}) { if h, ok := a.t.(tHelper); ok { h.Helper()