- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 368 for tc (0.12 sec)
-
cmd/kubeadm/app/util/patches/patches_test.go
patches: []string{`{"foo":"bar"}`, `{"foo":"baz"}`}, }, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { ps, _ := createPatchSet(tc.targetName, tc.patchType, tc.data) if !reflect.DeepEqual(ps, tc.expectedPatchSet) { t.Fatalf("expected patch set:\n%+v\ngot:\n%+v\n", tc.expectedPatchSet, ps) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 09 14:24:11 UTC 2023 - 11.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/fallback_query_param_verifier_test.go
for tn, tc := range tests { t.Run(tn, func(t *testing.T) { fakeOpenAPIClient.ForcedErr = tc.primaryError primary := createFakeV3Verifier(tc.crds, root, tc.queryParam) secondary := createFakeLegacyVerifier(tc.crds, &fakeSchema, tc.queryParam) verifier := NewFallbackQueryParamVerifier(primary, secondary) err := verifier.HasSupport(tc.gvk) if tc.expectedSupports && err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 18:30:16 UTC 2023 - 10.3K bytes - Viewed (0) -
src/regexp/all_test.go
t.Errorf("%q.ReplaceAllLiteralString(%q,%q) = %q; want %q", tc.pattern, tc.input, tc.replacement, actual, tc.output) } // now try bytes actual = string(re.ReplaceAllLiteral([]byte(tc.input), []byte(tc.replacement))) if actual != tc.output { t.Errorf("%q.ReplaceAllLiteral(%q,%q) = %q; want %q", tc.pattern, tc.input, tc.replacement, actual, tc.output) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 25.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/priority_test.go
result: mapping3, }, } for _, tc := range tcs { actualResult, actualErr := tc.mapper.RESTMapping(tc.input) if e, a := tc.result, actualResult; !reflect.DeepEqual(e, a) { t.Errorf("%s: expected %v, got %v", tc.name, e, a) } switch { case tc.err == nil && actualErr == nil: case tc.err == nil: t.Errorf("%s: unexpected error: %v", tc.name, actualErr) case actualErr == nil:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 06 15:24:58 UTC 2018 - 13.6K bytes - Viewed (0) -
security/pkg/pki/util/keycertbundle_test.go
}, } for id, tc := range testCases { _, err := NewVerifiedKeyCertBundleFromFile( tc.caCertFile, tc.caKeyFile, tc.certChainFile, tc.rootCertFile) if err != nil { if tc.expectedErr == "" { t.Errorf("%s: Unexpected error: %v", id, err) } else if !strings.HasPrefix(err.Error(), tc.expectedErr) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jan 21 06:07:50 UTC 2024 - 15.8K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys_test.go
t.Errorf("lstat(%q).Name(): got %q, want %q", tc.path, got.Name(), tc.want.name) } if got.Mode()&(fs.ModeDir|0700) != tc.want.mode { t.Errorf("lstat(%q).Mode()&(fs.ModeDir|0700): got %v, want %v", tc.path, got.Mode()&(fs.ModeDir|0700), tc.want.mode) } if got.IsDir() != tc.want.isDir { t.Errorf("lstat(%q).IsDir(): got %v, want %v", tc.path, got.IsDir(), tc.want.isDir) } if tc.want.isDir {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:52:11 UTC 2023 - 29.1K bytes - Viewed (0) -
istioctl/pkg/tag/generate_test.go
} } if tc.whURL != "" { if injectionWhConf.URL == nil { t.Fatalf("expected injection URL %s, got nil", tc.whURL) } if *injectionWhConf.URL != tc.whURL { t.Fatalf("expected injection URL %s, got %s", tc.whURL, *injectionWhConf.URL) } } if tc.whCA != "" { if string(injectionWhConf.CABundle) != tc.whCA { t.Fatalf("expected CA bundle %q, got %q", tc.whCA, injectionWhConf.CABundle)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 16 17:43:49 UTC 2024 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apihelpers/helpers_test.go
}, finalizerToCheck: "it", expected: []string{"not-it"}, }, } for _, tc := range tests { CRDRemoveFinalizer(tc.crd, tc.finalizerToCheck) if !reflect.DeepEqual(tc.expected, tc.crd.Finalizers) { t.Errorf("%v expected %v, got %v", tc.name, tc.expected, tc.crd.Finalizers) } } } func TestSetCRDCondition(t *testing.T) { tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 03 16:49:27 UTC 2019 - 20.3K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
}, } for name, tc := range cases { t.Run(name, func(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, features.JobBackoffLimitPerIndex, true) activePods := controller.FilterActivePods(logger, tc.pods) failedIndexes := calculateFailedIndexes(logger, &tc.job, tc.pods) _, succeededIndexes := calculateSucceededIndexes(logger, &tc.job, tc.pods) jobCtx := &syncJobCtx{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.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)