- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 915 for Tc (0.03 sec)
-
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/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) -
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) -
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/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/config/gateway/gateway_test.go
expected: true, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { test.SetForTest(t, &features.EnableQUICListeners, tc.enableQUICListeners) actual := IsEligibleForHTTP3Upgrade(tc.server) if actual != tc.expected { t.Errorf("IsEligibleForHTTP3Upgrade(%s) => %t, want %t", tc.server, actual, tc.expected) } }) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 26 05:53:25 UTC 2022 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/tracing_test.go
expectError: true, contents: &TracingOptions{ConfigFile: "/path/doesnt/exist"}, }, } for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) { errs := tc.contents.Validate() if !tc.expectError && len(errs) != 0 { t.Errorf("Calling Validate expected no error, got %v", errs) } else if tc.expectError && len(errs) == 0 { t.Errorf("Calling Validate expected error, got no error") } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 4.6K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/header_test.go
PresentMatch: true, }, }, }, } for _, tc := range testCases { t.Run(tc.Name, func(t *testing.T) { actual := HeaderMatcher(tc.K, tc.V) if !cmp.Equal(tc.Expect, actual, protocmp.Transform()) { t.Errorf("expecting %v, but got %v", tc.Expect, actual) } }) } } func TestHostMatcherWithRegex(t *testing.T) { testCases := []struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 6.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/test/framework/resource/version_test.go
IstioVersion(""), 0, }, { IstioVersion(""), IstioVersion("1.9"), 1, }, } for _, tc := range tcs { t.Run(fmt.Sprintf("compare version %s->%s", tc.a, tc.b), func(t *testing.T) { r := tc.a.Compare(tc.b) if r != tc.result { t.Errorf("expected %d, got %d", tc.result, r) } }) } } func TestMinimumIstioVersion(t *testing.T) { tcs := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 2.9K bytes - Viewed (0)