- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for inverseRelationship (0.28 sec)
-
src/net/http/pattern.go
switch r2 { case equivalent: return r1 case inverseRelationship(r1): return overlaps default: return r2 } default: panic(fmt.Sprintf("unknown relationship %q", r1)) } } // If p1 has relationship `r` to p2, then // p2 has inverseRelationship(r) to p1. func inverseRelationship(r relationship) relationship { switch r { case moreSpecific:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 16:36:30 UTC 2024 - 15.3K bytes - Viewed (0) -
src/net/http/pattern_test.go
got := pat1.compareMethods(pat2) if got != test.want { t.Errorf("%s vs %s: got %s, want %s", test.p1, test.p2, got, test.want) } got2 := pat2.compareMethods(pat1) want2 := inverseRelationship(test.want) if got2 != want2 { t.Errorf("%s vs %s: got %s, want %s", test.p2, test.p1, got2, want2) } } } func TestComparePaths(t *testing.T) { for _, test := range []struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 16:36:30 UTC 2024 - 15K bytes - Viewed (0)