Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 915 for Tc (0.05 sec)

  1. pkg/apis/core/taint_test.go

    				Value:  "bar",
    				Effect: TaintEffectPreferNoSchedule,
    			},
    			expectMatch: false,
    		},
    	}
    
    	for _, tc := range testCases {
    		if tc.expectMatch != tc.taint.MatchTaint(tc.taintToMatch) {
    			t.Errorf("[%s] expect taint %s match taint %s", tc.description, tc.taint.ToString(), tc.taintToMatch.ToString())
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  2. 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)
  3. src/strings/search_test.go

    		{"abc", "acca", -1},
    		{"aa", "aaa", 0},
    		{"baa", "aaaaa", -1},
    		{"at that", "which finally halts.  at that point", 22},
    	}
    
    	for _, tc := range testCases {
    		got := StringFind(tc.pat, tc.text)
    		want := tc.index
    		if got != want {
    			t.Errorf("stringFind(%q, %q) got %d, want %d\n", tc.pat, tc.text, got, want)
    		}
    	}
    }
    
    func TestFinderCreation(t *testing.T) {
    	testCases := []struct {
    		pattern string
    		bad     [256]int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 01 21:52:00 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  4. 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)
  5. security/pkg/pki/util/verify_cert_test.go

    			expectedErr:    "",
    		},
    	}
    	for id, tc := range testCases {
    		err := VerifyCertificate(
    			tc.privPem, tc.certChainPem, tc.rootCertPem, tc.expectedFields)
    		if err != nil {
    			if len(tc.expectedErr) == 0 {
    				t.Errorf("%s: Unexpected error: %v", id, err)
    			} else if !strings.Contains(err.Error(), tc.expectedErr) {
    				t.Errorf("%s: Unexpected error: %v VS (expected) %s", id, err, tc.expectedErr)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 16 14:56:37 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  6. 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)
  7. pkg/config/kube/conversion_test.go

    			expectedProto: protocol.HTTP2,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			actualProto := ConvertProtocol(tc.port, tc.portName, tc.proto, tc.appProto)
    			if actualProto != tc.expectedProto {
    				t.Errorf("ConvertProtocol(%d, %s, %s, %v) => %s, want %s",
    					tc.port, tc.portName, tc.proto, tc.appProto, actualProto, tc.expectedProto)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 28 15:30:30 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags_test.go

    			}
    
    			p, err := printFlags.ToPrinter(tc.outputFormat)
    			if tc.expectNoMatch {
    				if !IsNoCompatiblePrinterError(err) {
    					t.Fatalf("expected no printer matches for output format %q", tc.outputFormat)
    				}
    				return
    			}
    			if IsNoCompatiblePrinterError(err) {
    				t.Fatalf("expected to match template printer for output format %q", tc.outputFormat)
    			}
    
    			if len(tc.expectedError) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. test/fixedbugs/issue19658.go

    			log.Fatalf("expected a panic in output for %s, got: %s", tc.Type, out)
    		}
    		eolIdx := bytes.IndexByte(out[panicIdx:], '\n') + panicIdx
    		if panicIdx == -1 {
    			log.Fatalf("expected a newline in output for %s after the panic, got: %s", tc.Type, out)
    		}
    		out = out[0:eolIdx]
    		if string(out) != tc.Expect {
    			log.Fatalf("expected '%s' for panic(%s(%s)), got %s", tc.Expect, tc.Type, tc.Input, out)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. plugin/pkg/admission/network/denyserviceexternalips/admission_test.go

    			}
    
    			attrs := admission.NewAttributesRecord(
    				tc.newSvc, // new object
    				tc.oldSvc, // old object
    				core.Kind("Service").WithVersion("version"),
    				tc.newSvc.Namespace,
    				tc.newSvc.Name,
    				corev1.Resource("services").WithVersion("version"),
    				"", // subresource
    				op,
    				opt,
    				false, // dryRun
    				nil,   // userInfo
    			)
    
    			err := ctrl.Validate(context.TODO(), attrs, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 14 05:36:44 UTC 2021
    - 3K bytes
    - Viewed (0)
Back to top