(b *testing.B)
| 324 | } |
| 325 | |
| 326 | func BenchmarkCompressedEquals(b *testing.B) { |
| 327 | numItems := uint64(1000) |
| 328 | cba := newSparseBitArray() |
| 329 | other := newSparseBitArray() |
| 330 | |
| 331 | for i := uint64(0); i < numItems; i++ { |
| 332 | cba.SetBit(i) |
| 333 | other.SetBit(i) |
| 334 | } |
| 335 | |
| 336 | b.ResetTimer() |
| 337 | |
| 338 | for i := 0; i < b.N; i++ { |
| 339 | cba.Equals(other) |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | func TestInsertPreviousBlockInSparse(t *testing.T) { |
| 344 | sba := newSparseBitArray() |
nothing calls this directly
no test coverage detected
searching dependent graphs…