- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 554 for tc (0.03 sec)
-
pkg/volume/util/volumeattributesclass_test.go
}, }, }, expect: true, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { actual := IsDefaultVolumeAttributesClassAnnotation(tc.class.ObjectMeta) if tc.expect != actual { t.Errorf("Expected %v, got %v", tc.expect, actual) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 03:18:56 UTC 2023 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go
equal: false, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { // Compare types with schema against themselves if tc.lhs.Equal(tc.rhs) != types.Bool(tc.equal) { t.Errorf("expected Equals to return %v", tc.equal) } if tc.rhs.Equal(tc.lhs) != types.Bool(tc.equal) { t.Errorf("expected Equals to return %v", tc.equal) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 17.3K bytes - Viewed (0) -
pkg/kubelet/util/util_test.go
expectedOK: true, }, } for _, tc := range testCases { container, ok := GetContainerByIndex(tc.containers, tc.statuses, tc.idx) if container.Name != tc.expectedContainer.Name || ok != tc.expectedOK { t.Errorf("%s - Expected container: %v, got container: %v, expected ok: %v, got ok: %v", tc.title, tc.expectedContainer, container, tc.expectedOK, ok) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 14:16:02 UTC 2023 - 5.1K bytes - Viewed (0) -
pilot/pkg/model/extensions_test.go
}, want: false, }, } for _, tc := range cases { t.Run(tc.desc, func(t *testing.T) { opts := WorkloadPolicyMatcher{ Namespace: "ns", WorkloadLabels: tc.proxyLabels, IsWaypoint: false, } got := tc.wasmPlugin.MatchListener(opts, tc.listenerInfo) if tc.want != got { t.Errorf("MatchListener got %v want %v", got, tc.want) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 14.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/values_test.go
equal: false, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { // Compare types with schema against themselves if tc.lhs.Equal(tc.rhs) != types.Bool(tc.equal) { t.Errorf("expected Equals to return %v", tc.equal) } if tc.rhs.Equal(tc.lhs) != types.Bool(tc.equal) { t.Errorf("expected Equals to return %v", tc.equal) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:30:17 UTC 2023 - 17.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go
}, } for name, tc := range testcases { // We can run in parallel because logging is per-test. tc := tc t.Run(name, func(t *testing.T) { t.Parallel() nodes := tc.nodes if nodes == nil { nodes = []*v1.Node{workerNode} } testCtx := setup(t, nodes, tc.claims, tc.classes, tc.schedulings, tc.objs) testCtx.p.enabled = !tc.disable initialObjects := testCtx.listAll(t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 61.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go
}, { name: "Nil", expectedReason: metav1.StatusReasonUnknown, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { if result := ReasonForError(tc.err); result != tc.expectedReason { t.Errorf("expected reason: %q, but got known reason: %q", tc.expectedReason, result) } }) } } func TestIsTooManyRequestsSupportsWrappedErrors(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 19.5K bytes - Viewed (0) -
cmd/kube-apiserver/app/options/validation_test.go
expectErrors: true, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { err := validateMaxCIDRRange(tc.cidr, tc.maxCIDRBits, tc.cidrFlag) if err != nil && !tc.expectErrors { t.Errorf("expected no errors, error found %+v", err) } if err == nil && tc.expectErrors { t.Errorf("expected errors, no errors found") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/controller/ttlafterfinished/ttlafterfinished_controller.go
return } tc.queue.AddAfter(key, after) } func (tc *Controller) worker(ctx context.Context) { for tc.processNextWorkItem(ctx) { } } func (tc *Controller) processNextWorkItem(ctx context.Context) bool { key, quit := tc.queue.Get() if quit { return false } defer tc.queue.Done(key) err := tc.processJob(ctx, key) tc.handleErr(err, key) return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 23:59:28 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_linux_test.go
if tc.expectErr { if err == nil || err.Error() != tc.expectedErrMsg { t.Fatalf("expected error message `%s` but got `%v`", tc.expectedErrMsg, err) } return } // otherwise validate the mounts if err != nil { t.Fatal(err) } assert.Equal(t, tc.expectedMounts, mounts, "mounts of container %+v", tc.container) }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 18:00:59 UTC 2024 - 11.3K bytes - Viewed (0)