(b *testing.B)
| 66 | } |
| 67 | |
| 68 | func BenchmarkSetCompressedBit(b *testing.B) { |
| 69 | numItems := 1000 |
| 70 | ba := newSparseBitArray() |
| 71 | |
| 72 | b.ResetTimer() |
| 73 | for i := 0; i < b.N; i++ { |
| 74 | for j := 0; j < numItems; j++ { |
| 75 | ba.SetBit(uint64(j)) |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | func TestGetSetCompressedBits(t *testing.T) { |
| 81 | ba := newSparseBitArray() |
nothing calls this directly
no test coverage detected
searching dependent graphs…