- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 554 for tc (0.03 sec)
-
pkg/volume/projected/projected_test.go
success: true, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { testNamespace := "test_projected_namespace" tc.secret.ObjectMeta = metav1.ObjectMeta{ Namespace: testNamespace, Name: tc.name, } source := makeProjection(tc.name, utilptr.Int32Ptr(tc.mode), "secret") source.Sources[0].Secret.Items = tc.mappings
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 40.5K bytes - Viewed (0) -
pkg/controller/job/backoff_utils_test.go
}, } for name, tc := range testCases { t.Run(name, func(t *testing.T) { fakeClock := clocktesting.NewFakeClock(tc.currentTime.Truncate(time.Second)) d := tc.backoffRecord.getRemainingTime(fakeClock, tc.defaultBackoff, tc.maxBackoff) if d.Seconds() != tc.wantDuration.Seconds() { t.Errorf("Expected value of duration %v; got %v", tc.wantDuration, d) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 07:46:41 UTC 2024 - 16.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go
for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { _, err := compiler.CompileCELExpression(&SubjectAccessReviewMatchCondition{ Expression: tc.expression, }) if len(tc.expectedError) > 0 && (err == nil || !strings.Contains(err.Error(), tc.expectedError)) { t.Fatalf("expected error: %s compiling expression %s, got: %v", tc.expectedError, tc.expression, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/registry/core/service/strategy_test.go
}), }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.LoadBalancerIPMode, tc.ipModeEnabled) dropServiceStatusDisabledFields(tc.svc, tc.oldSvc) if !reflect.DeepEqual(tc.svc, tc.compareSvc) { t.Errorf("%v: unexpected svc spec: %v", tc.name, cmp.Diff(tc.svc, tc.compareSvc)) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 32.4K bytes - Viewed (0) -
callbacks/helper_test.go
Columns: []clause.Column{{Name: "active"}}, Values: [][]interface{}{{true}}, }, }, } for _, tc := range testCase { t.Run(tc.name, func(t *testing.T) { actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input) if !reflect.DeepEqual(actual, tc.expect) { t.Errorf("expect %v got %v", tc.expect, actual) } }) } } func TestConvertSliceOfMapToValuesForCreate(t *testing.T) {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 05 02:22:57 UTC 2024 - 3.4K bytes - Viewed (0) -
security/pkg/server/ca/authenticate/cert_authenticator_test.go
auth := &ClientCertAuthenticator{} for id, tc := range testCases { ctx := context.Background() if tc.certChain != nil { tlsInfo := credentials.TLSInfo{ State: tls.ConnectionState{VerifiedChains: tc.certChain}, } p := &peer.Peer{AuthInfo: tlsInfo} ctx = peer.NewContext(ctx, p) } if tc.fakeAuthInfo != nil { ctx = peer.NewContext(ctx, &peer.Peer{AuthInfo: tc.fakeAuthInfo}) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 05 01:20:59 UTC 2024 - 3.2K bytes - Viewed (0) -
security/pkg/k8s/configutil_test.go
err := updateDataInConfigMap(configmaps, tc.existingConfigMap, []byte(caBundle)) if err != nil && err.Error() != tc.expectedErr { t.Errorf("actual error (%s) different from expected error (%s).", err.Error(), tc.expectedErr) } if err == nil { if tc.expectedErr != "" { t.Errorf("expecting error %s but got no error", tc.expectedErr) } else if err := checkActions(fake.Actions(), tc.expectedActions); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 08 21:58:25 UTC 2024 - 13K bytes - Viewed (0) -
src/cmd/go/internal/trace/trace.go
} // Flow marks a flow indicating that the 'to' span depends on the 'from' span. // Flow should be called while the 'to' span is in progress. func Flow(ctx context.Context, from *Span, to *Span) { tc, ok := getTraceContext(ctx) if !ok || from == nil || to == nil { return } id := tc.t.getNextFlowID() tc.t.writeEvent(&format.Event{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 4.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go
}, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { c := filterCompiler{compiler: NewCompiler(environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), tc.enableStrictCostEnforcement))} f := c.Compile(tc.validations, OptionalVariableDeclarations{HasParams: tc.hasParamKind, HasAuthorizer: true, StrictCost: tc.enableStrictCostEnforcement}, environment.NewExpressions)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 40.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/common_test.go
}, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { err := tc.mutators.mutate(tc.input) if (err != nil) != tc.expectedError { t.Fatalf("expected error: %v, got: %v, error: %v", tc.expectedError, (err != nil), err) } if err != nil { return } diff := cmp.Diff(tc.expected, tc.input) if (len(diff) > 0) != tc.expectedDiff {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 23.4K bytes - Viewed (0)