- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 915 for tc (0.04 sec)
-
pkg/volume/csi/expander_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 03:58:36 UTC 2023 - 6.6K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/sync/sync_test.go
} var hasError bool for _, r := range tc.fake.results { hasError = hasError || (r != nil) } if hasError != tc.wantError { t.Errorf("%v, %v; hasError = %t, errors = %v, want %t", tc.desc, tc.mode, hasError, tc.fake.events, tc.wantError) } } } func TestNodeSyncResync(t *testing.T) { logger, _ := ktesting.NewTestContext(t) fake := &fakeAPIs{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 23:39:52 UTC 2023 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go
}, } for _, tc := range tcs { actual, err := mutationAnnotationValue(tc.config, tc.webhook, tc.mutated) assert.NoError(t, err, "unexpected error") if actual != tc.expected { t.Errorf("composed mutation annotation value doesn't match, want: %s, got: %s", tc.expected, actual) } } } func TestJSONPatchAnnotationValue(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/apis/autoscaling/v2beta2/defaults_test.go
expectedSelectPolicy: string(autoscalingv2.MaxPolicySelect), }, } 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.6K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/scope_test.go
scope.podTopologyHints = podTopologyHints{} for _, tc := range testCases { scope.podMap.Add(string(tc.podUID), tc.name, tc.containerID) scope.podTopologyHints[string(tc.podUID)] = make(map[string]TopologyHint) scope.podTopologyHints[string(tc.podUID)][tc.name] = TopologyHint{} len1 = len(scope.podMap) lenHints1 = len(scope.podTopologyHints) err := scope.RemoveContainer(tc.containerID) len2 = len(scope.podMap)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 10 11:44:15 UTC 2021 - 3.3K bytes - Viewed (0) -
src/cmd/compile/internal/ir/func_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 13:56:32 UTC 2023 - 2.2K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
tc.Lock() tc.scaleUpdated = false tc.statusUpdated = false tc.eventCreated = false tc.processed = make(chan string, 100) if tc.CPUCurrent == 0 { tc.computeCPUCurrent() } if tc.resource == nil { tc.resource = &fakeResource{ name: "test-rc", apiVersion: "v1", kind: "ReplicationController", } } tc.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0) -
src/strings/search_test.go
{"abc", "acca", -1}, {"aa", "aaa", 0}, {"baa", "aaaaa", -1}, {"at that", "which finally halts. at that point", 22}, } for _, tc := range testCases { got := StringFind(tc.pat, tc.text) want := tc.index if got != want { t.Errorf("stringFind(%q, %q) got %d, want %d\n", tc.pat, tc.text, got, want) } } } func TestFinderCreation(t *testing.T) { testCases := []struct { pattern string bad [256]int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 01 21:52:00 UTC 2018 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
tc.startingPod.ResourceVersion = "2" tc.startingPod.APIVersion = examplev1.SchemeGroupVersion.String() // pod with rv=3 is found when attempting to persist the update tc.updatePod.Name = name tc.updatePod.Namespace = namespace tc.updatePod.UID = uid tc.updatePod.ResourceVersion = "3" tc.updatePod.APIVersion = examplev1.SchemeGroupVersion.String() // patches are submitted with a rv=2
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment_test.go
}, }...) for _, tc := range testCases { t.Run(tc.description, func(t *testing.T) { result, err := takeByTopologyNUMAPacked(tc.topo, tc.availableCPUs, tc.numCPUs) if tc.expErr != "" && err != nil && err.Error() != tc.expErr { t.Errorf("expected error to be [%v] but it was [%v]", tc.expErr, err) } if !result.Equals(tc.expResult) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 09 17:31:37 UTC 2023 - 22.7K bytes - Viewed (0)