(b *testing.B)
| 165 | } |
| 166 | |
| 167 | func BenchmarkClearCompressedBit(b *testing.B) { |
| 168 | numItems := 1000 |
| 169 | ba := newSparseBitArray() |
| 170 | for i := 0; i < numItems; i++ { |
| 171 | ba.SetBit(uint64(i)) |
| 172 | } |
| 173 | |
| 174 | b.ResetTimer() |
| 175 | |
| 176 | for i := 0; i < b.N; i++ { |
| 177 | ba.ClearBit(uint64(i)) |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | func TestClearCompressedBitArray(t *testing.T) { |
| 182 | ba := newSparseBitArray() |
nothing calls this directly
no test coverage detected
searching dependent graphs…