Skip to content

Commit

Permalink
add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
tsknadaj committed Oct 10, 2024
1 parent 7e4dfff commit 55b44c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gdpr/protect_ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ func Test_ProtectIP_String(t *testing.T) {
ip: "",
want: "",
},
{
name: "real string (that is not ip)",
ip: "random_string",
want: "",
},
{
name: "zero ip",
ip: "0.0.0.0",
Expand Down

0 comments on commit 55b44c8

Please sign in to comment.