Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 279 for tc (0.03 sec)

  1. pkg/volume/csi/csi_mounter_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		registerFakePlugin(testDriver, "endpoint", []string{"1.0.0"}, t)
    		t.Run(tc.name, func(t *testing.T) {
    			mounter, err := plug.NewMounter(
    				tc.spec(tc.fsType, tc.options),
    				&corev1.Pod{ObjectMeta: meta.ObjectMeta{UID: tc.podUID, Namespace: testns}},
    				volume.VolumeOptions{},
    			)
    			if tc.newMounterShouldFail && err != nil {
    				t.Log(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  2. src/crypto/tls/ech_test.go

    	} {
    		b, err := hex.DecodeString(tc.list)
    		if err != nil {
    			t.Fatal(err)
    		}
    		configs, err := parseECHConfigList(b)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(configs) != tc.numConfigs {
    			t.Fatalf("unexpected number of configs parsed: got %d want %d", len(configs), tc.numConfigs)
    		}
    	}
    
    }
    
    func TestSkipBadConfigs(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/caclient/providers/citadel/client_test.go

    			if err != nil {
    				if !strings.Contains(err.Error(), tc.expectedErr) {
    					t.Errorf("error (%s) does not match expected error (%s)", err.Error(), tc.expectedErr)
    				}
    			} else {
    				if tc.expectedErr != "" {
    					t.Errorf("expect error: %s but got no error", tc.expectedErr)
    				} else if !reflect.DeepEqual(resp, tc.expectedCert) {
    					t.Errorf("resp: got %+v, expected %v", resp, tc.expectedCert)
    				}
    			}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 21:03:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/config_test.go

    		},
    	}
    
    	for _, tc := range testcases {
    		outputFlags := output.NewOutputFlags(&imageTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(tc.outputFormat)
    		printer, err := outputFlags.ToPrinter()
    		if err != nil {
    			t.Fatalf("can't create printer for the output format %s: %+v", tc.outputFormat, err)
    		}
    
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/lifecycle_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		tc := tc
    		t.Run("", func(t *testing.T) {
    			lc, err := ParseLifecycleConfig(bytes.NewReader([]byte(tc.inputConfig)))
    			if err != nil {
    				t.Fatalf("Got unexpected error: %v", err)
    			}
    			opts := ObjectOpts{
    				Name:             tc.objectName,
    				UserTags:         tc.objectTags,
    				ModTime:          tc.objectModTime,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller_test.go

    			fakePodControl := controller.FakePodControl{Err: tc.podControllerError, CreateLimit: tc.podLimit}
    			manager.podControl = &fakePodControl
    			manager.podStoreSynced = alwaysReady
    			manager.jobStoreSynced = alwaysReady
    
    			// job & pods setup
    			job := newJob(tc.parallelism, tc.completions, tc.backoffLimit, tc.completionMode)
    			job.Spec.Suspend = ptr.To(tc.suspend)
    			if tc.jobPodReplacementPolicy {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  7. pkg/registry/discovery/endpointslice/strategy_test.go

    					Addresses: []string{"1.2.3.4"},
    				}},
    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			Strategy.PrepareForUpdate(context.TODO(), tc.newEPS, tc.oldEPS)
    			if !apiequality.Semantic.DeepEqual(tc.newEPS, tc.expectedEPS) {
    				t.Errorf("Expected %+v\nGot: %+v", tc.expectedEPS, tc.newEPS)
    			}
    		})
    	}
    }
    
    func Test_dropTopologyOnV1(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  8. cmd/kube-proxy/app/server_linux_test.go

    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			options := NewOptions()
    			config := &proxyconfigapi.KubeProxyConfiguration{
    				Mode:            tc.mode,
    				DetectLocalMode: tc.detectLocal,
    			}
    
    			options.platformApplyDefaults(config)
    			if config.Mode != tc.expectedMode {
    				t.Fatalf("expected mode: %s, but got: %s", tc.expectedMode, config.Mode)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. src/slices/iter_test.go

    			n:      2,
    			chunks: [][]int{{1, 2}, {3, 4}, {5}},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			var chunks [][]int
    			for c := range Chunk(tc.s, tc.n) {
    				chunks = append(chunks, c)
    			}
    
    			if !chunkEqual(chunks, tc.chunks) {
    				t.Errorf("Chunk(%v, %d) = %v, want %v", tc.s, tc.n, chunks, tc.chunks)
    			}
    
    			if len(chunks) == 0 {
    				return
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go

    				}
    			},
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			s := newSerializer(tc.metaFactory, tc.creater, tc.typer, tc.options...)
    
    			actualObj, actualGVK, err := s.Decode(tc.data, tc.gvk, tc.into)
    			tc.assertOnError(t, err)
    
    			if !reflect.DeepEqual(tc.expectedObj, actualObj) {
    				t.Error(cmp.Diff(tc.expectedObj, actualObj))
    			}
    
    			if diff := cmp.Diff(tc.expectedGVK, actualGVK); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top