Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFairAlloc (0.25 sec)

  1. 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)
Back to top