Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 57 of 57 for newResource (0.17 sec)

  1. pkg/api/testing/serialization_proto_test.go

    			}
    		}
    	}
    	return nil
    }
    
    func TestProtobufRoundTrip(t *testing.T) {
    	obj := &v1.Pod{}
    	fuzzer.FuzzerFor(FuzzerFuncs, rand.NewSource(benchmarkSeed), legacyscheme.Codecs).Fuzz(obj)
    	// InitContainers are turned into annotations by conversion.
    	obj.Spec.InitContainers = nil
    	obj.Status.InitContainerStatuses = nil
    	data, err := obj.Marshal()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  2. pkg/test/framework/components/namespace/kube.go

    	kube2 "istio.io/istio/pkg/test/kube"
    	"istio.io/istio/pkg/test/scopes"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    // nolint: gosec
    // Test only code
    var (
    	idctr int64
    	rnd   = rand.New(rand.NewSource(time.Now().UnixNano()))
    	mu    sync.Mutex
    )
    
    // kubeNamespace represents a Kubernetes namespace. It is tracked as a resource.
    type kubeNamespace struct {
    	ctx          resource.Context
    	id           resource.ID
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/syscall/exec_unix_test.go

    	// and we are going to call syscall.Exec anyhow.
    	os.Setenv("GO_WANT_HELPER_PROCESS", "3")
    
    	stop := time.Now().Add(time.Second)
    	for i := 0; i < 100; i++ {
    		go func(i int) {
    			r := rand.New(rand.NewSource(int64(i)))
    			for time.Now().Before(stop) {
    				r.Uint64()
    			}
    		}(i)
    	}
    
    	time.Sleep(10 * time.Millisecond)
    
    	argv := []string{os.Args[0], "-test.run=^TestExecHelper$"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. cmd/site-replication-utils.go

    		peerResyncMap: make(map[string]resyncState),
    	}
    	go s.save(ctx)
    	go s.init(ctx)
    	return &s
    }
    
    // init site resync metrics
    func (sm *siteResyncMetrics) init(ctx context.Context) {
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	// Run the site resync metrics load in a loop
    	for {
    		if err := sm.load(ctx, newObjectLayerFn()); err == nil {
    			<-ctx.Done()
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (1)
  5. src/image/jpeg/dct_test.go

    	benchmarkDCT(b, idct)
    }
    
    func TestDCT(t *testing.T) {
    	blocks := make([]block, len(testBlocks))
    	copy(blocks, testBlocks[:])
    
    	// Append some randomly generated blocks of varying sparseness.
    	r := rand.New(rand.NewSource(123))
    	for i := 0; i < 100; i++ {
    		b := block{}
    		n := r.Int() % 64
    		for j := 0; j < n; j++ {
    			b[r.Int()%len(b)] = r.Int31() % 256
    		}
    		blocks = append(blocks, b)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  6. src/sync/map_test.go

    	}
    
    	done := make(chan struct{})
    	var wg sync.WaitGroup
    	defer func() {
    		close(done)
    		wg.Wait()
    	}()
    	for g := int64(runtime.GOMAXPROCS(0)); g > 0; g-- {
    		r := rand.New(rand.NewSource(g))
    		wg.Add(1)
    		go func(g int64) {
    			defer wg.Done()
    			for i := int64(0); ; i++ {
    				select {
    				case <-done:
    					return
    				default:
    				}
    				for n := int64(1); n < mapSize; n++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. src/math/big/alias_test.go

    			return checkAliasingTwoArgs(t, (*big.Int).Quo, v.Int, x.Int, y.Int)
    		},
    		"Rand": func(v, x bigInt, seed int64) bool {
    			return checkAliasingOneArg(t, func(v, x *big.Int) *big.Int {
    				rnd := rand.New(rand.NewSource(seed))
    				return v.Rand(rnd, x)
    			}, v.Int, x.Int)
    		},
    		"Rem": func(v, x bigInt, y notZeroInt) bool {
    			return checkAliasingTwoArgs(t, (*big.Int).Rem, v.Int, x.Int, y.Int)
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
Back to top