- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for sortedIPStrings (0.44 sec)
-
src/net/resolverdialfunc_test.go
t.Run("LookupIP", func(t *testing.T) { ips, err := r.LookupIP(ctx, "ip", fakeDomain) if err != nil { t.Fatal(err) } if got, want := sortedIPStrings(ips), []string{"0:200::e00", "1.2.3.4", "1::f", "5.6.7.8"}; !reflect.DeepEqual(got, want) { t.Errorf("LookupIP wrong.\n got: %q\nwant: %q\n", got, want) } }) t.Run("LookupSRV", func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.3K bytes - Viewed (0)