- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 115 for tc (0.03 sec)
-
pkg/config/analysis/analyzers/analyzers_bench_test.go
func BenchmarkAnalyzers(b *testing.B) { for _, tc := range testGrid { tc := tc // Capture range variable so subtests work correctly b.Run(tc.name+"-bench", func(b *testing.B) { sa, err := setupAnalyzerForCase(tc, nil) if err != nil { b.Fatalf("Error setting up analysis for benchmark on testcase %s: %v", tc.name, err) } b.ResetTimer() // Run the analysis
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val_test.go
"absent": nil, }, }, } { t.Run(tc.name, func(t *testing.T) { v := &ObjectVal{ typeRef: nil, // safe in this test, otherwise put a mock fields: tc.fields, } converted := v.Value() if !reflect.DeepEqual(tc.expected, converted) { t.Errorf("wrong result, expected %v but got %v", tc.expected, converted) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 1.6K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/types_test.go
cfg: &ClusterConfiguration{}, expectedResult: "", }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { if result := tc.cfg.EncryptionAlgorithmType(); result != tc.expectedResult { t.Errorf("expected result: %s, got: %s", tc.expectedResult, result) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 09:39:24 UTC 2024 - 1.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/apiclient/wait_test.go
{name: "kube-scheduler", url: "https://127.0.0.1:10259/healthz"}, }, }, } for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) { actual := getControlPlaneComponents(tc.cfg) if !reflect.DeepEqual(tc.expected, actual) { t.Fatalf("expected result: %+v, got: %+v", tc.expected, actual) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 15:33:38 UTC 2024 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider_test.go
expectedValue: map[string]any{"spec": map[string]any{"replicas": int64(3)}}, }, } { t.Run(tc.name, func(t *testing.T) { _, option := NewTypeProviderAndEnvOption(&mockTypeResolver{}) env := mustCreateEnv(t, option) ast, issues := env.Compile(tc.expression) if issues != nil { t.Fatalf("unexpected issues during compilation: %v", issues) } program, err := env.Program(ast)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 1.8K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/template_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 20 01:58:53 UTC 2024 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go
expectEvalResult: false, // 3 > 2 }, { expression: "foo.confusion == bar.confusion", expectCompileError: true, }, } { t.Run(tc.expression, func(t *testing.T) { ast, issues := env.Compile(tc.expression) if issues != nil { if tc.expectCompileError { return } t.Fatalf("compile error: %v", issues) } if issues != nil { t.Fatal(issues) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/bootstraptoken/clusterinfo/clusterinfo_test.go
}() for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { client := clientsetfake.NewSimpleClientset() if tc.createErr != nil { client.PrependReactor("create", "configmaps", func(action core.Action) (bool, runtime.Object, error) { return true, nil, tc.createErr }) } fileName := file.Name() if !tc.fileExist { fileName = "notexistfile"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 18 11:14:32 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubelet/flags_test.go
}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { nodeName, hostname, err := GetNodeNameAndHostname(tc.opts.nodeRegOpts) if err != nil { t.Errorf("unexpected error: %v", err) } if nodeName != tc.expectedNodeName { t.Errorf("expected nodeName: %v, got %v", tc.expectedNodeName, nodeName) } if hostname != tc.expectedHostName {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 24 07:02:51 UTC 2024 - 4.9K bytes - Viewed (0) -
pkg/kubelet/apis/podresources/server_v1alpha1_test.go
}, }, }, }, } { t.Run(tc.desc, func(t *testing.T) { mockDevicesProvider := podresourcetest.NewMockDevicesProvider(mockCtrl) mockPodsProvider := podresourcetest.NewMockPodsProvider(mockCtrl) mockPodsProvider.EXPECT().GetPods().Return(tc.pods).AnyTimes() mockDevicesProvider.EXPECT().GetDevices(string(podUID), containerName).Return(tc.devices).AnyTimes()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 3.9K bytes - Viewed (0)