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

Function TestIsSet

container/bitarray/bitarray_test.go:52–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

50var n = 1000
51
52func TestIsSet(t *testing.T) {
53 a := randArray(t, n)
54 a.vs[3] = 298
55 for i := 0; i < n; i++ {
56 vsi := i / 64
57 bitOff := uint32(i % 64)
58 b := ((a.vs[vsi] >> bitOff) & 1) != 0
59 wrapRequire(t, b == a.IsSet(i), "i=%v", i)
60 }
61}
62
63func TestOrEquals(t *testing.T) {
64 a1 := randArray(t, n)

Callers

nothing calls this directly

Calls 3

randArrayFunction · 0.85
wrapRequireFunction · 0.85
IsSetMethod · 0.80

Tested by

no test coverage detected