Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 368 for tc (0.02 sec)

  1. src/index/suffixarray/suffixarray_test.go

    		t.Errorf("failed reading index %s (%s)", tc.name, err)
    	}
    	if !equal(x, &y) {
    		t.Errorf("restored index doesn't match saved index %s", tc.name)
    	}
    
    	return size
    }
    
    func testIndex(t *testing.T) {
    	for _, tc := range testCases {
    		x := New([]byte(tc.source))
    		testConstruction(t, &tc, x)
    		testSaveRestore(t, &tc, x)
    		testLookups(t, &tc, x, 0)
    		testLookups(t, &tc, x, 1)
    		testLookups(t, &tc, x, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. pkg/controller/serviceaccount/tokens_controller_test.go

    			}
    			if tc.UpdatedServiceAccount != nil {
    				serviceAccounts.Add(tc.UpdatedServiceAccount)
    				controller.queueServiceAccountUpdateSync(nil, tc.UpdatedServiceAccount)
    			}
    			if tc.DeletedServiceAccount != nil {
    				serviceAccounts.Delete(tc.DeletedServiceAccount)
    				controller.queueServiceAccountSync(tc.DeletedServiceAccount)
    			}
    			if tc.AddedSecret != nil {
    				secrets.Add(tc.AddedSecret)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    	for _, tc := range testCases {
    		t.Run(tc.description, func(t *testing.T) {
    			// ensure there is no previous checkpoint
    			cpm.RemoveCheckpoint(testingCheckpoint)
    
    			// prepare checkpoint for testing
    			if strings.TrimSpace(tc.checkpointContent) != "" {
    				checkpoint := &testutil.MockCheckpoint{Content: tc.checkpointContent}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  4. pkg/fieldpath/fieldpath_test.go

    		},
    	}
    
    	for _, tc := range cases {
    		actual, err := ExtractFieldPathAsString(tc.obj, tc.fieldPath)
    		if err != nil {
    			if tc.expectedMessageFragment != "" {
    				if !strings.Contains(err.Error(), tc.expectedMessageFragment) {
    					t.Errorf("%v: unexpected error message: %q, expected to contain %q", tc.name, err, tc.expectedMessageFragment)
    				}
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 02 06:26:55 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/meta/help_test.go

    			},
    			expectObjectNum: fakeObjectItemsNum,
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			t.Run("EachListItem", func(t *testing.T) {
    				expectObjectNames := map[string]struct{}{}
    				for i := 0; i < tc.expectObjectNum; i++ {
    					expectObjectNames[strconv.Itoa(i)] = struct{}{}
    				}
    				list := tc.generateFunc(tc.expectObjectNum)
    				err := EachListItem(list, func(object runtime.Object) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 13:40:46 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/Type2Message.java

         * environment.
         * 
         * @param tc
         *            context to use
         */
        public Type2Message ( CIFSContext tc ) {
            this(tc, getDefaultFlags(tc), null, null);
        }
    
    
        /**
         * Creates a Type-2 message in response to the given Type-1 message
         * using default values from the current environment.
         * 
         * @param tc
         *            context to use
         * @param type1
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.4K bytes
    - Viewed (0)
  7. pkg/apis/apiserverinternal/validation/validation_test.go

    	}}
    
    	for _, tc := range cases {
    		err := validateServerStorageVersion(tc.ssv, field.NewPath("")).ToAggregate()
    		if err == nil && len(tc.expectedErr) == 0 {
    			continue
    		}
    		if err != nil && len(tc.expectedErr) == 0 {
    			t.Errorf("unexpected error %v", err)
    			continue
    		}
    		if err == nil && len(tc.expectedErr) != 0 {
    			t.Errorf("unexpected empty error")
    			continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 21:43:49 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/devicemanager/topology_hints_test.go

    			topologyAffinityStore: &mockAffinityStore{tc.hint},
    		}
    
    		m.allDevices[tc.resource] = make(DeviceInstances)
    		m.healthyDevices[tc.resource] = sets.New[string]()
    		m.endpoints[tc.resource] = endpointInfo{}
    
    		for _, d := range tc.devices {
    			m.allDevices[tc.resource][d.ID] = d
    			m.healthyDevices[tc.resource].Insert(d.ID)
    		}
    
    		if tc.getPreferredAllocationFunc != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/validation/validation_test.go

    	}}
    	for _, tc := range messageTests {
    		err := IsFullyQualifiedName(field.NewPath(""), tc.targetName).ToAggregate()
    		switch {
    		case tc.err == "" && err != nil:
    			t.Errorf("%q: unexpected error: %v", tc.name, err)
    		case tc.err != "" && err == nil:
    			t.Errorf("%q: unexpected no error, expected %s", tc.name, tc.err)
    		case tc.err != "" && err != nil && !strings.Contains(err.Error(), tc.err):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 04:51:54 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. pkg/registry/core/pod/storage/eviction_test.go

    				pod := validNewPod()
    				pod.Name = tc.podName
    				pod.Labels = map[string]string{"a": "true"}
    				pod.Spec.NodeName = "foo"
    				if tc.podPhase != "" {
    					pod.Status.Phase = tc.podPhase
    				}
    
    				if tc.podTerminating {
    					currentTime := metav1.Now()
    					pod.ObjectMeta.DeletionTimestamp = &currentTime
    				}
    
    				// Setup pod condition
    				if tc.prc != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
Back to top