Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 160 for tc (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. pkg/kube/multicluster/secretcontroller_test.go

    	namespaces := kclient.New[*v1.Namespace](tc.client)
    	filter := namespace.NewDiscoveryNamespacesFilter(namespaces, mesh, stop)
    	tc.client = kube.SetObjectFilter(tc.client, filter)
    
    	tc.secrets = clienttest.NewWriter[*v1.Secret](t, tc.client)
    	tc.controller = NewController(tc.client, secretNamespace, "config", mesh)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/compile_test.go

    	}
    	compiler := NewCompiler(extended)
    
    	for _, tc := range cases {
    		envType := tc.envType
    		if envType == "" {
    			envType = environment.NewExpressions
    		}
    		t.Run(tc.name, func(t *testing.T) {
    			for _, expr := range tc.expressions {
    				t.Run(expr, func(t *testing.T) {
    					t.Run("expression", func(t *testing.T) {
    						options := OptionalVariableDeclarations{HasParams: tc.hasParams, HasAuthorizer: tc.hasAuthorizer}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. pkg/registry/core/persistentvolume/strategy_test.go

    				},
    			},
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.PersistentVolumeLastPhaseTransitionTime, tc.fg)
    
    			obj := tc.newObj.DeepCopy()
    			StatusStrategy.PrepareForUpdate(context.TODO(), obj, tc.oldObj.DeepCopy())
    			if !reflect.DeepEqual(obj, tc.expectedObj) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/runtime/runtime_test.go

    			}
    			if ret64 != int64(tc.ret) {
    				t.Errorf("%d / %d got ret %d rem %d want ret %d rem %d", tc.num, tc.div, ret64, rem64, tc.ret, tc.rem)
    			}
    
    			var rem int32
    			ret := Timediv(tc.num, tc.div, &rem)
    			if ret != tc.ret || rem != tc.rem {
    				t.Errorf("timediv %d / %d got ret %d rem %d want ret %d rem %d", tc.num, tc.div, ret, rem, tc.ret, tc.rem)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/etcd_test.go

    	codecs := serializer.NewCodecFactory(scheme)
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			serverConfig := server.NewConfig(codecs)
    			etcdOptions := &EtcdOptions{
    				EncryptionProviderConfigFilepath:        tc.encryptionConfigPath,
    				EncryptionProviderConfigAutomaticReload: tc.reload,
    				SkipHealthEndpoints:                     tc.skipHealth,
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. pkg/proxy/endpointslicecache_test.go

    			expectChanged: true,
    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    			cmc := newCacheMutationCheck([]*discovery.EndpointSlice{tc.initialSlice})
    
    			if tc.initialSlice != nil {
    				tc.cache.updatePending(tc.initialSlice, false)
    				tc.cache.checkoutChanges()
    			}
    
    			serviceKey, sliceKey, err := endpointSliceCacheKeys(tc.updatedSlice)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top