const fpSlack … // TestConcAlloc tests computeConcurrencyAllocation with a bunch of randomly generated cases. func TestConcAlloc(t *testing.T) { … } func test1ConcAlloc(t *testing.T, rands *rand.Rand) { … } // partition64 calls consume n times, passing ints [0,n) and floats that sum to x func partition64(rands *rand.Rand, n int, x float64, consume func(int, float64)) { … } func f64RelDiff(a, b float64) float64 { … }