- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NoAlloc (0.16 sec)
-
src/internal/reflectlite/all_test.go
t.Errorf("%d iterations: got %v mallocs, want 0", n, allocs) } } func TestAllocations(t *testing.T) { noAlloc(t, 100, func(j int) { var i any var v Value i = []int{j, j, j} v = ValueOf(i) if v.Len() != 3 { panic("wrong length") } }) noAlloc(t, 100, func(j int) { var i any var v Value i = func(j int) int { return j } v = ValueOf(i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:26:08 UTC 2023 - 24.2K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_static_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 40.8K bytes - Viewed (0) -
src/reflect/all_test.go
t.Errorf("%d iterations: got %v mallocs, want 0", n, allocs) } } func TestAllocations(t *testing.T) { noAlloc(t, 100, func(j int) { var i any var v Value i = 42 + j v = ValueOf(i) if int(v.Int()) != 42+j { panic("wrong int") } }) noAlloc(t, 100, func(j int) { var i any var v Value i = [3]int{j, j, j} v = ValueOf(i) if v.Len() != 3 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
pkg/registry/core/service/storage/alloc.go
if i > (len(service.Spec.ClusterIPs) - 1) { service.Spec.ClusterIPs = append(service.Spec.ClusterIPs, "" /* just a marker */) } toAlloc[ipFamily] = service.Spec.ClusterIPs[i] } // allocate allocated, err := al.allocIPs(service, toAlloc, dryRun) // set if successful if err == nil { for family, ip := range allocated { for i, check := range service.Spec.IPFamilies {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:05 UTC 2023 - 37.3K bytes - Viewed (0)