(b *testing.B)
| 262 | } |
| 263 | |
| 264 | func BenchmarkCompressedIntersects(b *testing.B) { |
| 265 | numItems := uint64(1000) |
| 266 | |
| 267 | ba := newSparseBitArray() |
| 268 | other := newSparseBitArray() |
| 269 | |
| 270 | for i := uint64(0); i < numItems; i++ { |
| 271 | ba.SetBit(i) |
| 272 | other.SetBit(i) |
| 273 | } |
| 274 | |
| 275 | b.ResetTimer() |
| 276 | |
| 277 | for i := 0; i < b.N; i++ { |
| 278 | ba.Intersects(other) |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | func TestSparseIntersectsBitArray(t *testing.T) { |
| 283 | cba := newSparseBitArray() |
nothing calls this directly
no test coverage detected
searching dependent graphs…