- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 915 for Tc (0.02 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/net/interface_test.go
} for _, tc := range testCases { ip, err := getIPFromInterface(tc.nwname, tc.family, tc.nw) if err != nil { if !strings.Contains(err.Error(), tc.errStrFrag) { t.Errorf("case[%s]: Error string %q does not contain %q", tc.tcase, err, tc.errStrFrag) } } else if tc.errStrFrag != "" { t.Errorf("case[%s]: Error %q expected, but not seen", tc.tcase, tc.errStrFrag)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 33.2K bytes - Viewed (0) -
pkg/apis/apps/v1beta2/conversion_test.go
} // v1beta2 -> apps internal2 := &apps.StatefulSetSpec{} if err := legacyscheme.Scheme.Convert(tc.stsSepc2, internal2, nil); err != nil { t.Errorf("%q - %q: unexpected error: %v", k, "from v1beta2 to extensions", err) } if !apiequality.Semantic.DeepEqual(internal2, tc.stsSpec1) { t.Errorf("%q- %q: expected\n\t%#v, got \n\t%#v", k, "from v1beta2 to extensions", tc.stsSpec1, internal2) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 22.7K bytes - Viewed (0) -
pkg/securitycontext/accessors_test.go
if sc == nil { return &api.SecurityContext{} } return sc } for k, tc := range testcases { { podSC := tc.newPodSC() sc := tc.newSC() originalPodSC := tc.newPodSC() originalSC := tc.newSC() m := NewEffectiveContainerSecurityContextMutator( NewPodSecurityContextAccessor(podSC), NewContainerSecurityContextMutator(sc), )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 22 16:15:27 UTC 2023 - 27.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/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 { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 17 19:08:05 UTC 2019 - 15.4K bytes - Viewed (0) -
pkg/apis/apps/v1/conversion_test.go
} } // appsv1 -> apps for k, tc := range testcases { internal := &apps.DeploymentSpec{} if err := legacyscheme.Scheme.Convert(tc.deploymentSpec2, internal, nil); err != nil { t.Errorf("%q - %q: unexpected error: %v", "appsv1 -> apps", k, err) } if !apiequality.Semantic.DeepEqual(internal, tc.deploymentSpec1) {
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/bucket-lifecycle_test.go
expectedErr: errRestoreHDRMalformed, }, } for i, tc := range testCases { actual, err := parseRestoreObjStatus(tc.restoreHdr) if err != tc.expectedErr { t.Fatalf("Test %d: got %v expected %v", i+1, err, tc.expectedErr) } if actual != tc.expectedStatus { t.Fatalf("Test %d: got %v expected %v", i+1, actual, tc.expectedStatus) } } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 31 09:57:57 UTC 2022 - 7K bytes - Viewed (0) -
pkg/apis/autoscaling/v2/defaults_test.go
expectedSelectPolicy: string(autoscalingv2.MaxChangePolicySelect), }, } for _, tc := range tests { t.Run(tc.annotation, func(t *testing.T) { scaleDownRules := &autoscalingv2.HPAScalingRules{ StabilizationWindowSeconds: tc.stabilizationSeconds, SelectPolicy: tc.selectPolicy, } if tc.rateDownPods != 0 || tc.rateDownPodsPeriodSeconds != 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 11.7K bytes - Viewed (0) -
src/net/dnsname_test.go
ch <- dnsNameTest{longDomain[len(longDomain)-254:], false} } func TestDNSName(t *testing.T) { ch := make(chan dnsNameTest) go emitDNSNameTest(ch) for tc := range ch { if isDomainName(tc.name) != tc.result { t.Errorf("isDomainName(%q) = %v; want %v", tc.name, !tc.result, tc.result) } } } func BenchmarkDNSName(b *testing.B) { testHookUninstaller.Do(uninstallTestHooks)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/go/internal/web/url_test.go
t.Fatalf("urlToFilePath(%v): %v; want %s", u, err, tc.wantErr) } } if path != tc.filePath || tc.wantErr != "" { t.Fatalf("urlToFilePath(%v) = %q, <nil>; want %q, %s", u, path, tc.filePath, tc.wantErr) } }) } } func TestURLFromFilePath(t *testing.T) { for _, tc := range urlTests { if tc.filePath == "" { continue } tc := tc t.Run(tc.filePath, func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:43:51 UTC 2019 - 1.7K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs_test.go
{"abcd", "ab", false, "cd", true}, {"abcd", "ab", true, "cd", true}, {"abcd", "bc", false, "", false}, {"abcd", "bc", true, "d", true}, } for i, tc := range matcherCases { res, ok := matcher(tc.iText, tc.iPat, tc.iHasLeadingPercent) if res != tc.resultExpected || ok != tc.matchExpected { t.Errorf("Matcher Case %d failed", i) } } evalCases := []struct { iText, iPat string iEsc rune
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.1K bytes - Viewed (0)