We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 741bcc5 commit 65bdb12Copy full SHA for 65bdb12
1 file changed
test/asserts.go
@@ -83,7 +83,6 @@ func AssertError(t *testing.T, err error, message string) {
83
}
84
85
// AssertErrorWraps checks that err can be unwrapped into the given target.
86
-// NOTE: NO LONGER has the side effect of actually performing that unwrapping.
87
func AssertErrorWraps[E error](t *testing.T, err error) {
88
t.Helper()
89
target, ok := errors.AsType[E](err)
0 commit comments