We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31f410a commit 4beb867Copy full SHA for 4beb867
1 file changed
errors_test.go
@@ -45,12 +45,12 @@ func TestUnwrap(t *testing.T) {
45
func TestWrapNil(t *testing.T) {
46
var err error
47
48
- assert.Panics(t, func() { Wrap(err, "qwe") })
49
- assert.Panics(t, func() { WrapNoCaller(err, "qwe") })
50
- assert.Panics(t, func() { WrapDepth(err, 0, "qwe") })
51
- assert.Panics(t, func() { WrapStack(err, 0, 0, "qwe") })
52
- assert.Panics(t, func() { WrapCaller(err, loc.FuncEntry(0), "qwe") })
53
- assert.Panics(t, func() { WrapCallers(err, loc.Callers(0, 1), "qwe") })
+ assert.Panics(t, func() { _ = Wrap(err, "qwe") })
+ assert.Panics(t, func() { _ = WrapNoCaller(err, "qwe") })
+ assert.Panics(t, func() { _ = WrapDepth(err, 0, "qwe") })
+ assert.Panics(t, func() { _ = WrapStack(err, 0, 0, "qwe") })
+ assert.Panics(t, func() { _ = WrapCaller(err, loc.FuncEntry(0), "qwe") })
+ assert.Panics(t, func() { _ = WrapCallers(err, loc.Callers(0, 1), "qwe") })
54
}
55
56
func (w testWrapper) Error() string { return "none" }
0 commit comments