Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 764 for tc (0.02 sec)

  1. src/os/exec/exec_posix_test.go

    		{"PWDdotdot", cwd + string(filepath.Separator) + "..", filepath.Dir(cwd)},
    	}
    
    	for _, tc := range cases {
    		tc := tc
    		t.Run(tc.name, func(t *testing.T) {
    			t.Parallel()
    
    			cmd := helperCommand(t, "pwd")
    			if cmd.Env != nil {
    				t.Fatalf("test requires helperCommand not to set Env field")
    			}
    			cmd.Dir = tc.dir
    
    			var pwds []string
    			for _, kv := range cmd.Environ() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 20:21:32 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  2. pkg/apis/core/helper/helpers_test.go

    			},
    
    			output: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			s := core.Service{
    				Spec: tc.input,
    			}
    			if IsServiceIPSet(&s) != tc.output {
    				t.Errorf("case, input: %v, expected: %v, got: %v", tc.input, tc.output, !tc.output)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  3. pkg/controller/certificates/rootcacertpublisher/publisher_test.go

    			for _, s := range tc.ExistingConfigMaps {
    				cmStore.Add(s)
    			}
    
    			if tc.AddedNamespace != nil {
    				controller.namespaceAdded(tc.AddedNamespace)
    			}
    			if tc.UpdatedNamespace != nil {
    				controller.namespaceUpdated(nil, tc.UpdatedNamespace)
    			}
    
    			if tc.DeletedConfigMap != nil {
    				cmStore.Delete(tc.DeletedConfigMap)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			var targetNode checker.AstNode = testSizeNode{size: tc.targetSize}
    			argNodes := make([]checker.AstNode, len(tc.argSizes))
    			for i, arg := range tc.argSizes {
    				argNodes[i] = testSizeNode{size: arg}
    			}
    			result := est.EstimateCallCost(tc.function, tc.overload, &targetNode, argNodes)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  5. cmd/kube-proxy/app/server_test.go

    		baseYAML := fmt.Sprintf(
    			yamlTemplate, tc.bindAddress, tc.clusterCIDR,
    			tc.healthzBindAddress, tc.metricsBindAddress, tc.mode)
    
    		// Append additional configuration to the base yaml template
    		yaml := fmt.Sprintf("%s\n%s", baseYAML, tc.extraConfig)
    
    		config, err := options.loadConfig([]byte(yaml))
    
    		assert.NoError(t, err, "unexpected error for %s: %v", tc.name, err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  6. pkg/apis/rbac/helpers_test.go

    		},
    	}
    	for _, tc := range tests {
    		actual, err := rbac.NewRule(tc.verbs...).Groups(tc.groups...).Resources(tc.resources...).Names(tc.names...).URLs(tc.urls...).Rule()
    		if err != nil {
    			if tc.expected {
    				t.Error(err)
    			} else {
    				continue
    			}
    		}
    		if !reflect.DeepEqual(actual, tc.policyRule) {
    			t.Errorf("Expected %s got %s.", tc.policyRule, actual)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. src/crypto/x509/root_test.go

    			forceFallback:   true,
    			returnsFallback: true,
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			fallbacksSet = false
    			systemRoots = tc.systemRoots
    			if systemRoots != nil {
    				systemRoots.systemPool = tc.systemPool
    			}
    			for _, c := range tc.poolContent {
    				systemRoots.AddCert(c)
    			}
    			if tc.forceFallback {
    				t.Setenv("GODEBUG", "x509usefallbackroots=1")
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 23:57:10 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    		})
    		sort.SliceStable(tc.expectedHints, func(i, j int) bool {
    			return tc.expectedHints[i].LessThan(tc.expectedHints[j])
    		})
    		if !reflect.DeepEqual(tc.expectedHints, hints) {
    			t.Errorf("Expected in result to be %v , got %v", tc.expectedHints, hints)
    		}
    	}
    }
    
    func TestGetPodTopologyHints(t *testing.T) {
    	machineInfo := returnMachineInfo()
    
    	for _, tc := range returnTestCases() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. pkg/registry/core/pod/strategy_test.go

    		},
    	}
    
    	for _, tc := range tcs {
    		indexValues, err := tc.indexFunc(tc.pod)
    		if !reflect.DeepEqual(err, tc.expectedErr) {
    			t.Errorf("name %v, expected %v, got %v", tc.name, tc.expectedErr, err)
    		}
    		if err == nil && len(indexValues) != 1 && indexValues[0] != tc.expectedValue {
    			t.Errorf("name %v, expected %v, got %v", tc.name, tc.expectedValue, indexValues)
    		}
    
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy_test.go

    					"spec":   "old",
    					"status": "new",
    				},
    			},
    		},
    	}
    	for index, tc := range tcs {
    		strategy.PrepareForUpdate(context.TODO(), tc.obj, tc.old)
    		if !reflect.DeepEqual(tc.obj, tc.expected) {
    			t.Errorf("test %d failed: expected: %v, got %v", index, tc.expected, tc.obj)
    		}
    	}
    }
    
    const listTypeResourceSchema = `
    apiVersion: apiextensions.k8s.io/v1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 22:16:10 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top