- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 483 for testCases (0.19 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go
nil, &metav1.StatusDetails{ Kind: "Kind", Name: "name", Causes: []metav1.StatusCause{}, }, `Kind "name" is invalid`, }, } for i, testCase := range testCases { vErr, expected := testCase.Err, testCase.Details if vErr != nil && expected != nil { expected.Causes[0].Message = vErr.ErrorBody() } var errList field.ErrorList if vErr != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 19.5K bytes - Viewed (0) -
pkg/apis/apps/v1/conversion_test.go
} apiTemplate := api.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{Name: "foo"}, Spec: api.PodSpec{ RestartPolicy: api.RestartPolicy("bar"), SecurityContext: new(api.PodSecurityContext), }, } testcases := map[string]struct { stsSpec1 *apps.StatefulSetSpec stsSepc2 *appsv1.StatefulSetSpec }{ "StatefulSetSpec Conversion 1": { stsSpec1: &apps.StatefulSetSpec{ Replicas: *replicas,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 20.1K bytes - Viewed (0) -
cmd/erasure-metadata_test.go
} // Test them. for _, testCase := range testCases { index, offset, err := fi.ObjectToPartOffset(context.Background(), testCase.offset) if err != testCase.expectedErr { t.Fatalf("%+v: expected = %s, got: %s", testCase, testCase.expectedErr, err) } if index != testCase.expectedIndex { t.Fatalf("%+v: index: expected = %d, got: %d", testCase, testCase.expectedIndex, index) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 17 20:57:37 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/registry/core/service/allocator/bitmap_test.go
}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { m := tc.allocator(tc.max, "test", tc.reserved) if ok, _ := m.Allocate(3); !ok { t.Errorf("error allocate offset %v", 3) } if ok, _ := m.Allocate(3); ok { t.Errorf("unexpected success") } }) } } func TestRelease(t *testing.T) { testCases := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 10 08:56:31 UTC 2022 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/errors/errors_test.go
aggregate{aggregate{fmt.Errorf("abc")}}, }, } for i, testCase := range testCases { err := FilterOut(testCase.err, testCase.filter...) if !reflect.DeepEqual(testCase.expected, err) { t.Errorf("%d: expected %v, got %v", i, testCase.expected, err) } } } func TestFlatten(t *testing.T) { testCases := []struct { agg Aggregate expected Aggregate }{ { nil,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jul 24 13:16:21 UTC 2022 - 12.7K bytes - Viewed (0) -
cmd/endpoint-ellipses_test.go
} for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { gotGCD := getDivisibleSize(testCase.totalSizes) if testCase.result != gotGCD { t.Errorf("Expected %v, got %v", testCase.result, gotGCD) } }) } } // Test tests calculating set indexes with ENV override for drive count. func TestGetSetIndexesEnvOverride(t *testing.T) { testCases := []struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper_test.go
ExpectedResourceErr: " matches multiple resources ", }, } for _, testCase := range testCases { tcName := testCase.Name for _, partialResource := range []schema.GroupVersionResource{testCase.PluralPartialResourceToRequest, testCase.SingularPartialResourceToRequest} { mapper := NewDefaultRESTMapper(testCase.PreferredOrder) for _, kind := range testCase.KindsToRegister { mapper.Add(kind, RESTScopeNamespace) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Nov 01 08:38:57 UTC 2020 - 28.9K bytes - Viewed (0) -
pkg/credentialprovider/plugin/plugin_test.go
}, }, }, } for _, testcase := range testcases { testcase := testcase t.Run(testcase.name, func(t *testing.T) { t.Parallel() dockerconfig := testcase.pluginProvider.Provide(testcase.image) if !reflect.DeepEqual(dockerconfig, testcase.dockerconfig) { t.Logf("actual docker config: %v", dockerconfig) t.Logf("expected docker config: %v", testcase.dockerconfig) t.Error("unexpected docker config")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 09 06:11:06 UTC 2022 - 26.5K bytes - Viewed (0) -
cmd/bucket-handlers_test.go
}, } for i, testCase := range testCases { var req *http.Request var actualContent []byte // Generate a signed or anonymous request based on the testCase if testCase.accessKey != "" { req, err = newTestSignedRequestV4(http.MethodPost, getDeleteMultipleObjectsURL("", testCase.bucket), int64(len(testCase.objects)), bytes.NewReader(testCase.objects), testCase.accessKey, testCase.secretKey, nil)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 39.8K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment_test.go
60, "", mustParseCPUSet(t, "10-39,50-79"), }, } } func TestTakeByTopologyNUMAPacked(t *testing.T) { testCases := commonTakeByTopologyTestCases(t) testCases = append(testCases, []takeByTopologyTestCase{ { "take one cpu from dual socket with HT - core from Socket 0", topoDualSocketHT, cpuset.New(1, 2, 3, 4, 5, 7, 8, 9, 10, 11), 1, "",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 09 17:31:37 UTC 2023 - 22.7K bytes - Viewed (0)