- Sort Score
- Result 10 results
- Languages All
Results 21 - 28 of 28 for expectError (0.21 sec)
-
cmd/kubeadm/app/phases/certs/certs_test.go
certstestutil.WritePKIFiles(t, tmpdir, test.Files) err := CreatePKIAssets(cfg) if err != nil { if test.ExpectError { return } t.Fatalf("Unexpected error: %v", err) } if test.ExpectError { t.Fatal("Expected error from CreatePKIAssets, got none") } assertCertsExist(t, tmpdir) }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 23.3K bytes - Viewed (0) -
pkg/volume/util/util_test.go
"k8s.io/kubernetes/pkg/util/slice" "k8s.io/kubernetes/pkg/volume" "k8s.io/utils/ptr" ) func TestLoadPodFromFile(t *testing.T) { tests := []struct { name string content string expectError bool }{ { "yaml", ` apiVersion: v1 kind: Pod metadata: name: testpod spec: containers: - image: registry.k8s.io/busybox `, false, }, { "json",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.7K bytes - Viewed (0) -
pkg/controller/deployment/deployment_controller_test.go
c, informers, err := f.newController(ctx) if err != nil { f.t.Fatalf("error creating Deployment controller: %v", err) } if startInformers { stopCh := make(chan struct{}) defer close(stopCh) informers.Start(stopCh) } err = c.syncDeployment(ctx, deploymentName) if !expectError && err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 32.5K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_static_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 40.8K bytes - Viewed (0) -
cmd/kube-apiserver/app/options/validation_test.go
testCases := []struct { name string options *ServerRunOptions expectErrors bool gate bool }{ { name: "no service cidr", expectErrors: true, options: makeOptionsWithCIDRs("", ""), }, { name: "only secondary service cidr", expectErrors: true, options: makeOptionsWithCIDRs("", "10.0.0.0/16"), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 11.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stdlib_test.go
case "errorcheck": expectErrors = true for _, arg := range fields[1:] { if arg == "-0" || arg == "-+" || arg == "-std" { // Marked explicitly as not expecting errors (-0), // or marked as compiling runtime/stdlib, which is only done // to trigger runtime/stdlib-only error output. // In both cases, the code should typecheck. expectErrors = false break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:18:33 UTC 2024 - 13.3K bytes - Viewed (0) -
src/go/types/stdlib_test.go
case "errorcheck": expectErrors = true for _, arg := range fields[1:] { if arg == "-0" || arg == "-+" || arg == "-std" { // Marked explicitly as not expecting errors (-0), // or marked as compiling runtime/stdlib, which is only done // to trigger runtime/stdlib-only error output. // In both cases, the code should typecheck. expectErrors = false break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 04:39:56 UTC 2023 - 13.7K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 33.5K bytes - Viewed (0)