- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for genCallK (0.08 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go
if ust.uc.split && ust.j >= ust.uc.nThreads/2 { initialDelay += ust.uss.evalDuration / 2 ust.nCalls = ust.nCalls / 2 } ust.uss.clk.EventAfterDuration(ust.genCallK(0), initialDelay) } // generates an EventFunc that does call k func (ust *uniformScenarioThread) genCallK(k int) func(time.Time) { return func(time.Time) { ust.callK(k) } } func (ust *uniformScenarioThread) callK(k int) { if k >= ust.nCalls {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 12:55:23 UTC 2023 - 58.4K bytes - Viewed (0) -
src/strings/replace_test.go
testCase{foo4, "", ""}, ) // genAll maps "\x00\x01\x02...\xfe\xff" to "[all]", amongst other things. allBytes := make([]byte, 256) for i := range allBytes { allBytes[i] = byte(i) } allString := string(allBytes) genAll := NewReplacer( allString, "[all]", "\xff", "[ff]", "\x00", "[00]", ) testCases = append(testCases, testCase{genAll, allString, "[all]"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 22:53:05 UTC 2017 - 14.1K bytes - Viewed (0)