- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestPrefixContains (0.14 sec)
-
src/net/netip/netip_pkg_test.go
{mustIP("::ffff:10.0.0.1"), 128}, } for _, tt := range tests { got := tt.ip.BitLen() if got != tt.want { t.Errorf("BitLen(%v) = %d; want %d", tt.ip, got, tt.want) } } } func TestPrefixContains(t *testing.T) { tests := []struct { ipp Prefix ip Addr want bool }{ {mustPrefix("9.8.7.6/0"), mustIP("9.8.7.6"), true}, {mustPrefix("9.8.7.6/16"), mustIP("9.8.7.6"), true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 02 15:37:19 UTC 2023 - 9K bytes - Viewed (0)