Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newTestJar (0.12 sec)

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

    		return "co.uk"
    	}
    	if d == "www.buggy.psl" {
    		return "xy"
    	}
    	if d == "www2.buggy.psl" {
    		return "com"
    	}
    	return d[strings.LastIndex(d, ".")+1:]
    }
    
    // newTestJar creates an empty Jar with testPSL as the public suffix list.
    func newTestJar() *Jar {
    	jar, err := New(&Options{PublicSuffixList: testPSL{}})
    	if err != nil {
    		panic(err)
    	}
    	return jar
    }
    
    var hasDotSuffixTests = [...]struct {
    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