Skip to content

Commit bb0fb09

Browse files
committed
Clarify documentation for NotErrorIs assertion
1 parent 23341c1 commit bb0fb09

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

‎assert/assertion_format.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...
575575
}
576576

577577
// NotErrorIsf asserts that at none of the errors in err's chain matches target.
578-
// This is a wrapper for errors.Is.
578+
// This is the inverse of the ErrorIs function.
579579
func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) bool {
580580
if h, ok := t.(tHelper); ok {
581581
h.Helper()

‎assert/assertion_forward.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ func (a *Assertions) NotErrorAsf(err error, target interface{}, msg string, args
11381138
}
11391139

11401140
// NotErrorIs asserts that at none of the errors in err's chain matches target.
1141-
// This is a wrapper for errors.Is.
1141+
// This is the inverse of the ErrorIs function.
11421142
func (a *Assertions) NotErrorIs(err error, target error, msgAndArgs ...interface{}) bool {
11431143
if h, ok := a.t.(tHelper); ok {
11441144
h.Helper()
@@ -1147,7 +1147,7 @@ func (a *Assertions) NotErrorIs(err error, target error, msgAndArgs ...interface
11471147
}
11481148

11491149
// NotErrorIsf asserts that at none of the errors in err's chain matches target.
1150-
// This is a wrapper for errors.Is.
1150+
// This is the inverse of the ErrorIs function.
11511151
func (a *Assertions) NotErrorIsf(err error, target error, msg string, args ...interface{}) bool {
11521152
if h, ok := a.t.(tHelper); ok {
11531153
h.Helper()

‎assert/assertions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ func ErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool {
17611761
}
17621762

17631763
// NotErrorIs asserts that at none of the errors in err's chain matches target.
1764-
// This is a wrapper for errors.Is.
1764+
// This is the inverse of the ErrorIs function.
17651765
func NotErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool {
17661766
if h, ok := t.(tHelper); ok {
17671767
h.Helper()

‎require/require.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...
14511451
}
14521452

14531453
// NotErrorIs asserts that at none of the errors in err's chain matches target.
1454-
// This is a wrapper for errors.Is.
1454+
// This is the inverse of the ErrorIs function.
14551455
func NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{}) {
14561456
if h, ok := t.(tHelper); ok {
14571457
h.Helper()
@@ -1463,7 +1463,7 @@ func NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{})
14631463
}
14641464

14651465
// NotErrorIsf asserts that at none of the errors in err's chain matches target.
1466-
// This is a wrapper for errors.Is.
1466+
// This is the inverse of the ErrorIs function.
14671467
func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) {
14681468
if h, ok := t.(tHelper); ok {
14691469
h.Helper()

‎require/require_forward.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ func (a *Assertions) NotErrorAsf(err error, target interface{}, msg string, args
11391139
}
11401140

11411141
// NotErrorIs asserts that at none of the errors in err's chain matches target.
1142-
// This is a wrapper for errors.Is.
1142+
// This is the inverse of the ErrorIs function.
11431143
func (a *Assertions) NotErrorIs(err error, target error, msgAndArgs ...interface{}) {
11441144
if h, ok := a.t.(tHelper); ok {
11451145
h.Helper()
@@ -1148,7 +1148,7 @@ func (a *Assertions) NotErrorIs(err error, target error, msgAndArgs ...interface
11481148
}
11491149

11501150
// NotErrorIsf asserts that at none of the errors in err's chain matches target.
1151-
// This is a wrapper for errors.Is.
1151+
// This is the inverse of the ErrorIs function.
11521152
func (a *Assertions) NotErrorIsf(err error, target error, msg string, args ...interface{}) {
11531153
if h, ok := a.t.(tHelper); ok {
11541154
h.Helper()

0 commit comments

Comments
 (0)