Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 316 for tc (0.02 sec)

  1. 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)
  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/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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. pilot/pkg/security/authz/matcher/template_test.go

    			want: &uri_template.UriTemplateMatchConfig{
    				PathTemplate: "/*/*/foo/**/bar",
    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := PathTemplateMatcher(tc.path)
    			if !cmp.Equal(got, tc.want, protocmp.Transform()) {
    				t.Errorf("want %v but got %v", tc.want, got)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top