Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEscapedPathsAndPatterns (0.17 sec)

  1. src/net/http/server_test.go

    			n = &routingNode{pattern: pat}
    		}
    		got := exactMatch(n, test.path)
    		if got != test.want {
    			t.Errorf("%q, %s: got %t, want %t", test.pattern, test.path, got, test.want)
    		}
    	}
    }
    
    func TestEscapedPathsAndPatterns(t *testing.T) {
    	matches := []struct {
    		pattern  string
    		paths    []string // paths that match the pattern
    		paths121 []string // paths that matched the pattern in Go 1.21.
    	}{
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 13:54:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top