- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCRDFinderErrors (0.17 sec)
-
staging/src/k8s.io/cli-runtime/pkg/resource/crd_finder_test.go
if err != nil { t.Fatalf("Failed to call HasCRD: %v", err) } if called != 1 { t.Fatalf("Second call should NOT call the getter, has called = %v", called) } } func TestCRDFinderErrors(t *testing.T) { getter := func() ([]schema.GroupKind, error) { return nil, errors.New("not working") } finder := NewCRDFinder(getter) found, err := finder.HasCRD(schema.GroupKind{Group: "", Kind: "Pod"})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 2.3K bytes - Viewed (0)