(b *testing.B)
| 32 | } |
| 33 | |
| 34 | func BenchmarkGetCompressedBit(b *testing.B) { |
| 35 | numItems := 1000 |
| 36 | ba := newSparseBitArray() |
| 37 | |
| 38 | for i := 0; i < numItems; i++ { |
| 39 | ba.SetBit(uint64(i)) |
| 40 | } |
| 41 | |
| 42 | b.ResetTimer() |
| 43 | |
| 44 | for i := 0; i < b.N; i++ { |
| 45 | ba.GetBit(s) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func TestGetSetCompressedBit(t *testing.T) { |
| 50 | ba := newSparseBitArray() |
nothing calls this directly
no test coverage detected
searching dependent graphs…