Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCanonicalHost (0.21 sec)

  1. src/net/http/cookiejar/jar_test.go

    	".net.":                   ".net",
    	"a..":                     "a.",
    	"b.a..":                   "b.a.",
    	"weird.stuff...":          "weird.stuff..",
    	"[bad.unmatched.bracket:": "error",
    }
    
    func TestCanonicalHost(t *testing.T) {
    	for h, want := range canonicalHostTests {
    		got, err := canonicalHost(h)
    		if want == "error" {
    			if err == nil {
    				t.Errorf("%q: got %q and nil error, want non-nil", h, got)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 34K bytes
    - Viewed (0)
Back to top