- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetArticleForNoun (0.31 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/installer_test.go
padding: " ", want: " a ", }, { noun: "O", padding: " ", want: " an ", }, } for _, tt := range tests { if got := GetArticleForNoun(tt.noun, tt.padding); got != tt.want { t.Errorf("%q. GetArticleForNoun() = %v, want %v", tt.noun, got, tt.want) } } } func TestConvertAPIResourceToDiscovery(t *testing.T) { tests := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 12.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
return "", "", fmt.Errorf("api_installer allows only one or two segment paths (resource or resource/subresource)") } return resource, subresource, nil } // GetArticleForNoun returns the article needed for the given noun. func GetArticleForNoun(noun string, padding string) string { if !strings.HasSuffix(noun, "ss") && strings.HasSuffix(noun, "s") { // Plurals don't have an article. // Don't catch words like class
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 51.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
case "list": article = " objects of kind " case "read", "replace": article = " the specified " case "patch": article = " the specified " case "create", "delete": article = endpoints.GetArticleForNoun(b.kind, " ") default: article = "" } var description string sub := subresource(path) if len(sub) > 0 { sub = " " + sub + " of" } switch operationVerb { case "patch":
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 22.8K bytes - Viewed (0)