- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for HasNames (0.13 sec)
-
staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go
}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { hasNames, err := HasNames(tt.args) if !reflect.DeepEqual(tt.expectedError, err) { t.Errorf("expected HasName to error:\n%s\tgot:\n%s", tt.expectedError, err) } if hasNames != tt.expectedHasName { t.Errorf("expected HasName to return %v for %s", tt.expectedHasName, tt.args) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 11:58:41 UTC 2023 - 56.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/builder.go
for _, s := range strings.Split(arg, ",") { if set.Has(s) { continue } set.Insert(s) out = append(out, s) } return out } // HasNames returns true if the provided args contain resource names func HasNames(args []string) (bool, error) { args = normalizeMultipleResourcesArgs(args) hasCombinedTypes, err := hasCombinedTypeArgs(args) if err != nil { return false, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 10:17:56 UTC 2023 - 37.2K bytes - Viewed (0)