Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIsIP (0.07 sec)

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

    	"2001:4860:0:2001::68": true,
    	"::1%zone":             true,
    	"example.com":          false,
    	"1.1.1.300":            false,
    	"www.foo.bar.net":      false,
    	"123.foo.bar.net":      false,
    }
    
    func TestIsIP(t *testing.T) {
    	for host, want := range isIPTests {
    		if got := isIP(host); got != want {
    			t.Errorf("%q: got %t, want %t", host, got, want)
    		}
    	}
    }
    
    var defaultPathTests = map[string]string{
    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