Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 68 for tc (0.03 sec)

  1. src/strings/strings_test.go

    }
    
    func TestIndexFunc(t *testing.T) {
    	for _, tc := range indexFuncTests {
    		first := IndexFunc(tc.in, tc.f.f)
    		if first != tc.first {
    			t.Errorf("IndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, first, tc.first)
    		}
    		last := LastIndexFunc(tc.in, tc.f.f)
    		if last != tc.last {
    			t.Errorf("LastIndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, last, tc.last)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			newPVSize:       resource.MustParse("15G"),
    			oldPVSize:       resource.MustParse("13G"),
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			pv := getTestPV(tc.pvName, tc.volumeMode, tc.oldPVSize)
    			pvc := getTestPVC("pv", tc.volumeMode, tc.pvcSize, tc.pvcStatusSize)
    			pod := getTestPod(pvc.Name)
    
    			// deep copy before reconciler runs to avoid data race.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  3. pkg/controller/cronjob/cronjob_controllerv2_test.go

    		},
    	}
    	for name, tc := range testCases {
    		name := name
    		tc := tc
    
    		t.Run(name, func(t *testing.T) {
    			cj := cronJob()
    			cj.Spec.ConcurrencyPolicy = tc.concurrencyPolicy
    			cj.Spec.Suspend = &tc.suspend
    			cj.Spec.Schedule = tc.schedule
    			cj.Spec.TimeZone = tc.timeZone
    			if tc.deadline != noDead {
    				cj.Spec.StartingDeadlineSeconds = &tc.deadline
    			}
    
    			var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  4. pkg/controller/endpoint/endpoints_controller_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			tCtx := ktesting.Init(t)
    
    			ns := tc.service.Namespace
    			client, c := newFakeController(tCtx, 0*time.Second)
    
    			err := c.podStore.Add(tc.pod)
    			if err != nil {
    				t.Errorf("Unexpected error adding pod %v", err)
    			}
    			err = c.serviceStore.Add(tc.service)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  5. pkg/kubelet/pod_workers_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.desc, func(t *testing.T) {
    			podWorkers, _, _ := createPodWorkers()
    			if tc.podSyncStatuses != nil {
    				podWorkers.podSyncStatuses = tc.podSyncStatuses
    			}
    			if tc.startedStaticPodsByFullname != nil {
    				podWorkers.startedStaticPodsByFullname = tc.startedStaticPodsByFullname
    			}
    			if tc.waitingToStartStaticPodsByFullname != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  6. pkg/proxy/endpointschangetracker_test.go

    				},
    			},
    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    			initializeCache(tc.endpointsChangeTracker.endpointSliceCache, tc.startingSlices)
    
    			got := tc.endpointsChangeTracker.EndpointSliceUpdate(tc.paramEndpointSlice, tc.paramRemoveSlice)
    			if !reflect.DeepEqual(got, tc.expectedReturnVal) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 79.9K bytes
    - Viewed (0)
  7. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    			volumeType: "ephemeral",
    		},
    	}
    
    	for _, tc := range testcases {
    		var pod *v1.Pod
    		var pvc *v1.PersistentVolumeClaim
    		var pv *v1.PersistentVolume
    
    		if tc.volumeType == "ephemeral" {
    			pod, pv, pvc = createEphemeralVolumeObjects("dswp-test-pod", "dswp-test-volume-name", true, &tc.volumeMode)
    		} else {
    			pv, pvc = createResizeRelatedVolumes(&tc.volumeMode)
    			containers := []v1.Container{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  8. pkg/scheduler/internal/cache/cache_test.go

    			// pod has not been added yet
    			if err := cache.UpdatePod(logger, tc.pod, tc.podToUpdate); err == nil {
    				t.Error("expected error, no error found")
    			}
    
    			if err := tc.handler(logger, cache, tc.pod); err != nil {
    				t.Fatalf("unexpected err: %v", err)
    			}
    
    			if !tc.assumePod {
    				if err := cache.UpdatePod(logger, tc.pod, tc.podToUpdate); err != nil {
    					t.Fatalf("UpdatePod failed: %v", err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 63.8K bytes
    - Viewed (0)
  9. pkg/controller/disruption/disruption_test.go

    			uid:        ss.UID,
    			findsScale: false,
    		},
    	}
    
    	for tn, tc := range testCases {
    		t.Run(tn, func(t *testing.T) {
    			controllerRef := &metav1.OwnerReference{
    				APIVersion: tc.apiVersion,
    				Kind:       tc.kind,
    				Name:       tc.name,
    				UID:        tc.uid,
    			}
    
    			controllerAndScale, _ := tc.finderFunc(ctx, controllerRef, metav1.NamespaceDefault)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  10. pilot/pkg/model/virtualservice_test.go

    				},
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			tc.delegate = config.DeepCopy(tc.delegate).([]*networking.HTTPMatchRequest)
    			got, _ := mergeHTTPMatchRequests(tc.root, tc.delegate)
    			assert.Equal(t, got, tc.expected)
    		})
    	}
    }
    
    func TestHasConflict(t *testing.T) {
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
Back to top