Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
add methods
Browse files Browse the repository at this point in the history
  • Loading branch information
markus621 committed Apr 11, 2022
1 parent 7991727 commit 4cf0599
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ func Test_Is(t *testing.T) {
{name: "Case1", args: args{err: err0, target: err0}, want: true},
{name: "Case2", args: args{err: WrapMessage(err0, "ttt"), target: err0}, want: true},
{name: "Case3", args: args{err: New("hello"), target: err0}, want: false},
{name: "Case4", args: args{err: nil, target: err0}, want: false},
{name: "Case5", args: args{err: New("hello"), target: nil}, want: false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 4cf0599

Please sign in to comment.