Skip to content

Commit

Permalink
netip.Addr tests
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed Oct 25, 2023
1 parent 33481c8 commit 53daaf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jaws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ func TestJaws_parseIP(t *testing.T) {
is.True(parseIP("127.0.0.1").Compare(netip.MustParseAddr("127.0.0.1")) == 0)
is.True(parseIP("::1").Compare(netip.IPv6Loopback()) == 0)
is.True(equalIP(parseIP("127.0.0.1"), parseIP("::1")))
is.Equal(equalIP(parseIP("127.0.0.1"), netip.Addr{}), false)
is.Equal(equalIP(netip.IPv4Unspecified(), netip.Addr{}), false)
is.Equal(equalIP(netip.IPv6Unspecified(), netip.Addr{}), false)
is.Equal(equalIP(netip.IPv6Loopback(), netip.Addr{}), false)
is.Equal(equalIP(netip.Addr{}, netip.Addr{}), true)
}

func TestJaws_getCookieSessionsIds(t *testing.T) {
Expand Down

0 comments on commit 53daaf1

Please sign in to comment.