- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 100 for newResource (0.36 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation_test.go
} else { t.Logf("seed (override with TEST_RAND_SEED if desired): %d", seed) } fuzzerFuncs := fuzzer.MergeFuzzerFuncs(apiextensionsfuzzer.Funcs) f := fuzzer.FuzzerFor(fuzzerFuncs, rand.NewSource(seed), codecs) for i := 0; i < 50; i++ { // fuzz internal types internal := &apiextensions.JSONSchemaProps{} f.Fuzz(internal) // internal -> go-openapi openAPITypes := &kubeopenapispec.Schema{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 04:49:59 UTC 2023 - 24.8K bytes - Viewed (0) -
src/image/jpeg/reader_test.go
t.Fatalf("encoded JPEG does not contain a SOS marker (ff da) near the end: % x", s) } // Test that adding some random junk between the SOS marker and the // EOI marker does not affect the decoding. rnd := rand.New(rand.NewSource(1)) for i, nerr := 0, 0; i < 1000 && nerr < 10; i++ { buf.Reset() // Write all but the trailing "\xff\xd9" EOI marker. buf.WriteString(enc[:len(enc)-2]) // Write some random extraneous data.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 25 00:46:29 UTC 2024 - 24.4K bytes - Viewed (0) -
src/runtime/mgcscavenge_test.go
return } if !isNormal(min) || !isNormal(max) || min > max { return } // Use a random source, but make it deterministic. rs := rand.New(rand.NewSource(800)) randFloat64 := func() float64 { return math.Float64frombits(rs.Uint64()) } p := NewPIController(kp, ti, tt, min, max) state := float64(0) for i := 0; i < 100; i++ { input := randFloat64()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.2K bytes - Viewed (0) -
internal/dsync/drwmutex.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 19.7K bytes - Viewed (0) -
src/time/sleep_test.go
} } // Test that rapidly moving timers earlier and later doesn't cause // some of the sleep times to be lost. // Issue 47762 func TestAdjustTimers(t *testing.T) { var rnd = rand.New(rand.NewSource(Now().UnixNano())) timers := make([]*Timer, 100) states := make([]int, len(timers)) indices := rnd.Perm(len(timers)) for len(indices) != 0 { var ii = rnd.Intn(len(indices)) var i = indices[ii]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance.go
go func() { // Update rebalance.bin periodically once every 5-10s, chosen randomly // to avoid multiple pool leaders herding to update around the same // time. r := rand.New(rand.NewSource(time.Now().UnixNano())) randSleepFor := func() time.Duration { return 5*time.Second + time.Duration(float64(5*time.Second)*r.Float64()) } timer := time.NewTimer(randSleepFor()) defer timer.Stop()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:45:54 UTC 2024 - 27.3K bytes - Viewed (0) -
cmd/batch-handlers.go
if ri.Complete { return nil } globalBatchJobsMetrics.save(job.ID, ri) delay := job.Replicate.Flags.Retry.Delay if delay == 0 { delay = batchReplJobDefaultRetryDelay } rnd := rand.New(rand.NewSource(time.Now().UnixNano())) hasTags := len(r.Flags.Filter.Tags) != 0 isMetadata := len(r.Flags.Filter.Metadata) != 0
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 56K bytes - Viewed (0) -
src/context/x_test.go
} func TestLayersTimeout(t *testing.T) { testLayers(t, time.Now().UnixNano(), true) } func testLayers(t *testing.T, seed int64, testTimeout bool) { t.Parallel() r := rand.New(rand.NewSource(seed)) prefix := fmt.Sprintf("seed=%d", seed) errorf := func(format string, a ...any) { t.Errorf(prefix+format, a...) } const ( minLayers = 30 ) type value int var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 26.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go
waitGroup := sync.WaitGroup{} // Spawn a bunch of writers that randomly add groups, remove groups, and // reset the list of groups for i := 0; i < numWriters; i++ { source := rand.NewSource(int64(i)) waitGroup.Add(1) go func() { defer waitGroup.Done() // track list of groups we've added so that we can remove them // randomly var addedGroups []metav1.GroupVersion
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 00:29:39 UTC 2024 - 28.6K bytes - Viewed (0) -
cmd/iam.go
sys.initStore(objAPI, etcdClient) sys.Unlock() retryCtx, cancel := context.WithCancel(ctx) // Indicate to our routine to exit cleanly upon return. defer cancel() r := rand.New(rand.NewSource(time.Now().UnixNano())) // Migrate storage format if needed. for { // Migrate IAM configuration, if necessary. if err := saveIAMFormat(retryCtx, sys.store); err != nil { if configRetriableErrors(err) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 71.9K bytes - Viewed (0)