Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 263 for tc (0.04 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    	tc.startingPod.ResourceVersion = "2"
    	tc.startingPod.APIVersion = examplev1.SchemeGroupVersion.String()
    
    	// pod with rv=3 is found when attempting to persist the update
    	tc.updatePod.Name = name
    	tc.updatePod.Namespace = namespace
    	tc.updatePod.UID = uid
    	tc.updatePod.ResourceVersion = "3"
    	tc.updatePod.APIVersion = examplev1.SchemeGroupVersion.String()
    
    	// patches are submitted with a rv=2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/cpu_assignment_test.go

    		},
    	}...)
    
    	for _, tc := range testCases {
    		t.Run(tc.description, func(t *testing.T) {
    			result, err := takeByTopologyNUMAPacked(tc.topo, tc.availableCPUs, tc.numCPUs)
    			if tc.expErr != "" && err != nil && err.Error() != tc.expErr {
    				t.Errorf("expected error to be [%v] but it was [%v]", tc.expErr, err)
    			}
    			if !result.Equals(tc.expResult) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 17:31:37 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  3. pkg/apis/core/v1/validation/validation_test.go

    		skipLimitValueCheck: true,
    	}}
    	for _, tc := range errorCase {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := ValidateResourceRequirements(&tc.requirements, field.NewPath("resources"))
    			if len(errs) == 0 {
    				t.Errorf("expected error")
    			}
    			validateNamesAndValuesInDescription(t, tc.requirements.Limits, errs, tc.skipLimitValueCheck, "limit")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. src/regexp/all_test.go

    			t.Errorf("%q.ReplaceAllLiteralString(%q,%q) = %q; want %q",
    				tc.pattern, tc.input, tc.replacement, actual, tc.output)
    		}
    		// now try bytes
    		actual = string(re.ReplaceAllLiteral([]byte(tc.input), []byte(tc.replacement)))
    		if actual != tc.output {
    			t.Errorf("%q.ReplaceAllLiteral(%q,%q) = %q; want %q",
    				tc.pattern, tc.input, tc.replacement, actual, tc.output)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. security/pkg/pki/util/keycertbundle_test.go

    		},
    	}
    	for id, tc := range testCases {
    		_, err := NewVerifiedKeyCertBundleFromFile(
    			tc.caCertFile, tc.caKeyFile, tc.certChainFile, tc.rootCertFile)
    		if err != nil {
    			if tc.expectedErr == "" {
    				t.Errorf("%s: Unexpected error: %v", id, err)
    			} else if !strings.HasPrefix(err.Error(), tc.expectedErr) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/fsys/fsys_test.go

    				t.Errorf("lstat(%q).Name(): got %q, want %q", tc.path, got.Name(), tc.want.name)
    			}
    			if got.Mode()&(fs.ModeDir|0700) != tc.want.mode {
    				t.Errorf("lstat(%q).Mode()&(fs.ModeDir|0700): got %v, want %v", tc.path, got.Mode()&(fs.ModeDir|0700), tc.want.mode)
    			}
    			if got.IsDir() != tc.want.isDir {
    				t.Errorf("lstat(%q).IsDir(): got %v, want %v", tc.path, got.IsDir(), tc.want.isDir)
    			}
    			if tc.want.isDir {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:52:11 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  7. istioctl/pkg/tag/generate_test.go

    				}
    			}
    			if tc.whURL != "" {
    				if injectionWhConf.URL == nil {
    					t.Fatalf("expected injection URL %s, got nil", tc.whURL)
    				}
    				if *injectionWhConf.URL != tc.whURL {
    					t.Fatalf("expected injection URL %s, got %s", tc.whURL, *injectionWhConf.URL)
    				}
    			}
    			if tc.whCA != "" {
    				if string(injectionWhConf.CABundle) != tc.whCA {
    					t.Fatalf("expected CA bundle %q, got %q", tc.whCA, injectionWhConf.CABundle)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 17:43:49 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. pkg/controller/job/indexed_job_utils_test.go

    		},
    	}
    	for name, tc := range cases {
    		t.Run(name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, features.JobBackoffLimitPerIndex, true)
    			activePods := controller.FilterActivePods(logger, tc.pods)
    			failedIndexes := calculateFailedIndexes(logger, &tc.job, tc.pods)
    			_, succeededIndexes := calculateSucceededIndexes(logger, &tc.job, tc.pods)
    			jobCtx := &syncJobCtx{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go

    			equal: false,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			// Compare types with schema against themselves
    			if tc.lhs.Equal(tc.rhs) != types.Bool(tc.equal) {
    				t.Errorf("expected Equals to return %v", tc.equal)
    			}
    			if tc.rhs.Equal(tc.lhs) != types.Bool(tc.equal) {
    				t.Errorf("expected Equals to return %v", tc.equal)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  10. pilot/pkg/model/extensions_test.go

    			},
    			want: false,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.desc, func(t *testing.T) {
    			opts := WorkloadPolicyMatcher{
    				Namespace:      "ns",
    				WorkloadLabels: tc.proxyLabels,
    				IsWaypoint:     false,
    			}
    			got := tc.wasmPlugin.MatchListener(opts, tc.listenerInfo)
    			if tc.want != got {
    				t.Errorf("MatchListener got %v want %v", got, tc.want)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top