- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestFairAlloc (0.21 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go
prevAlloc = demand alloc[idx] = demand capacity -= fullCapacityBite } for j := next; j < count; j++ { alloc[indices[j]] = prevAlloc + capacity/float64(count-next) } return alloc } func TestFairAlloc(t *testing.T) { if e, a := []float64{0, 0}, fairAlloc([]float64{0, 0}, 42); !reflect.DeepEqual(e, a) { t.Errorf("Expected %#+v, got #%+v", e, a) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 12:55:23 UTC 2023 - 58.4K bytes - Viewed (0)