From dce48747946e9f3f014f63b6ca6f767b6221cd81 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Sun, 3 Mar 2024 06:22:10 +0700 Subject: [PATCH] test: add nil IsBlacklist case Signed-off-by: Dwi Siswanto --- errors_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/errors_test.go b/errors_test.go index 3dd70fe..71750b0 100644 --- a/errors_test.go +++ b/errors_test.go @@ -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() } })