Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDefaultPath (0.33 sec)

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

    	"/a/b/c.html": "/a/b",
    	"":            "/",
    	"strange":     "/",
    	"//":          "/",
    	"/a//b":       "/a/",
    	"/a/./b":      "/a/.",
    	"/a/../b":     "/a/..",
    }
    
    func TestDefaultPath(t *testing.T) {
    	for path, want := range defaultPathTests {
    		if got := defaultPath(path); got != want {
    			t.Errorf("%q: got %q, want %q", path, got, want)
    		}
    	}
    }
    
    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