- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAddrPortCompare (0.19 sec)
-
src/net/netip/netip_test.go
got := fmt.Sprintf("%s", values) want := `[invalid IP 1.2.3.4 8.8.8.8 ::1 ::1%foo ::2]` if got != want { t.Errorf("unexpected sort\n got: %s\nwant: %s\n", got, want) } } func TestAddrPortCompare(t *testing.T) { tests := []struct { a, b AddrPort want int }{ {AddrPort{}, AddrPort{}, 0}, {AddrPort{}, mustIPPort("1.2.3.4:80"), -1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 54.3K bytes - Viewed (0)