Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for itor (0.23 sec)

  1. pkg/controller/endpointslice/endpointslice_controller_test.go

    					t.Fatalf("Pod %q doesn't exist", update.podName)
    				}
    				oldPod := old.(*v1.Pod)
    				newPod := oldPod.DeepCopy()
    				newPod.Status.PodIPs[0].IP = update.podIP
    				newPod.ResourceVersion = strconv.Itoa(resourceVersion)
    				resourceVersion++
    
    				esController.podStore.Update(newPod)
    				esController.updatePod(oldPod, newPod)
    			}
    
    			time.Sleep(tc.finalDelay)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  2. src/strings/strings_test.go

    			}
    		})
    	}
    }
    
    func BenchmarkJoin(b *testing.B) {
    	vals := []string{"red", "yellow", "pink", "green", "purple", "orange", "blue"}
    	for l := 0; l <= len(vals); l++ {
    		b.Run(strconv.Itoa(l), func(b *testing.B) {
    			b.ReportAllocs()
    			vals := vals[:l]
    			for i := 0; i < b.N; i++ {
    				Join(vals, " and ")
    			}
    		})
    	}
    }
    
    func BenchmarkTrimSpace(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. pkg/kubelet/status/status_manager_test.go

    	}
    	return NewManager(kubeClient, podManager, &statustest.FakePodDeletionSafetyProvider{}, podStartupLatencyTracker, testRootDir).(*manager)
    }
    
    func generateRandomMessage() string {
    	return strconv.Itoa(rand.Int())
    }
    
    func getRandomPodStatus() v1.PodStatus {
    	return v1.PodStatus{
    		Message: generateRandomMessage(),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    		if dt.ByteSize < 0 && tag == "" { // opaque unnamed struct - should not be possible
    			break
    		}
    		if tag == "" {
    			tag = anonymousStructTag[dt]
    			if tag == "" {
    				tag = "__" + strconv.Itoa(tagGen)
    				tagGen++
    				anonymousStructTag[dt] = tag
    			}
    		} else if t.C.Empty() {
    			t.C.Set(dt.Kind + " " + tag)
    		}
    		name := c.Ident("_Ctype_" + dt.Kind + "_" + tag)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  5. pkg/kubelet/nodestatus/setters_test.go

    	}
    	return expectedImages
    }
    
    func makeImageTags(num int32) []string {
    	tags := make([]string, num)
    	for i := range tags {
    		tags[i] = "registry.k8s.io:v" + strconv.Itoa(i)
    	}
    	return tags
    }
    
    func makeReadyCondition(ready bool, message string, transition, heartbeat time.Time) *v1.NodeCondition {
    	if ready {
    		return &v1.NodeCondition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. src/encoding/xml/marshal_test.go

    					Weight: 7,
    				},
    				{
    					Name:   []string{"Arthur", "Dent"},
    					Weight: 6.75,
    				},
    			},
    		},
    		ExpectXML: `<spaceship name="Heart of Gold" pilot="Computer">` +
    			`<drive>` + strconv.Itoa(int(ImprobabilityDrive)) + `</drive>` +
    			`<age>1</age>` +
    			`<passenger>` +
    			`<name>Zaphod</name>` +
    			`<name>Beeblebrox</name>` +
    			`<weight>7.25</weight>` +
    			`</passenger>` +
    			`<passenger>` +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  7. plugin/pkg/admission/resourcequota/admission_test.go

    	}
    	pod.Spec.Containers = make([]api.Container, 0, numContainers)
    	for i := 0; i < numContainers; i++ {
    		pod.Spec.Containers = append(pod.Spec.Containers, api.Container{
    			Image:     "foo:V" + strconv.Itoa(i),
    			Resources: resources,
    		})
    	}
    	return pod
    }
    
    func validPodWithPriority(name string, numContainers int, resources api.ResourceRequirements, priorityClass string) *api.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  8. cmd/object-api-listobjects_test.go

    	if err != nil {
    		b.Fatal(err)
    	}
    
    	// Insert objects to be listed and benchmarked later.
    	for i := 0; i < 20000; i++ {
    		key := "obj" + strconv.Itoa(i)
    		_, err = obj.PutObject(context.Background(), bucket, key, mustGetPutObjReader(b, bytes.NewBufferString(key), int64(len(key)), "", ""), ObjectOptions{})
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    	r := randN
    	// Initial seed required, generate one.
    	if r == 0 {
    		r = reseed()
    	}
    	// constants from Numerical Recipes
    	r = r*1664525 + 1013904223
    	randN = r
    	randmu.Unlock()
    	return strconv.Itoa(int(1e9 + r%1e9))[1:]
    }
    
    // isSameType - compares two object types via reflect.TypeOf
    func isSameType(obj1, obj2 interface{}) bool {
    	return reflect.TypeOf(obj1) == reflect.TypeOf(obj2)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  10. src/cmd/internal/testdir/testdir_test.go

    		comment += " " + cmt
    		if code == "" {
    			continue
    		}
    
    		// Parse and extract any architecture check from comments,
    		// made by one architecture name and multiple checks.
    		lnum := fn + ":" + strconv.Itoa(i+1)
    		for _, ac := range rxAsmPlatform.FindAllStringSubmatch(comment, -1) {
    			archspec, allchecks := ac[1:4], ac[4]
    
    			var arch, subarch, os string
    			switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top