MCPcopy Index your code
hub / github.com/dropbox/godropbox / randArray

Function randArray

container/bitarray/bitarray_test.go:39–48  ·  view source on GitHub ↗
(t *testing.T, n int)

Source from the content-addressed store, hash-verified

37}
38
39func randArray(t *testing.T, n int) *BitArray {
40 sz := asize(n)
41 vs := make([]uint64, sz)
42 for i := 0; i < sz; i++ {
43 vs[i] = rand.Uint64()
44 }
45 a := NewUsingSlice(vs, n)
46 wrapRequire(t, sz == len(a.vs))
47 return a
48}
49
50var n = 1000
51

Callers 2

TestIsSetFunction · 0.85
TestOrEqualsFunction · 0.85

Calls 3

asizeFunction · 0.85
NewUsingSliceFunction · 0.85
wrapRequireFunction · 0.85

Tested by

no test coverage detected