Skip to content

Commit

Permalink
test: add nil IsBlacklist case
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Mar 2, 2024
1 parent 3d413af commit dce4874
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ func TestIsBlacklist(t *testing.T) {
})

t.Run("false", func(t *testing.T) {
if IsBlacklist(ErrNoSSLBLData) == true {
if IsBlacklist(ErrNoSSLBLData) != false {
t.Fail()
}
})

t.Run("nil", func(t *testing.T) {
if IsBlacklist(nil) != false {
t.Fail()
}
})
Expand Down

0 comments on commit dce4874

Please sign in to comment.