- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 715 for tc (0.11 sec)
-
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) -
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) -
src/errors/wrap_test.go
{multiErr{poser}, err1, true}, {multiErr{poser}, err3, true}, {multiErr{nil}, nil, false}, } for _, tc := range testCases { t.Run("", func(t *testing.T) { if got := errors.Is(tc.err, tc.target); got != tc.match { t.Errorf("Is(%v, %v) = %v, want %v", tc.err, tc.target, got, tc.match) } }) } } type poser struct { msg string f func(error) bool }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:49:49 UTC 2024 - 6K bytes - Viewed (0) -
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) -
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/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/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) -
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) -
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)