(b *testing.B)
| 326 | } |
| 327 | |
| 328 | func BenchmarkIntersects(b *testing.B) { |
| 329 | ba := newBitArray(162432) |
| 330 | other := newBitArray(ba.Capacity()) |
| 331 | |
| 332 | ba.SetBit(159999) |
| 333 | other.SetBit(159999) |
| 334 | |
| 335 | b.ResetTimer() |
| 336 | |
| 337 | for i := 0; i < b.N; i++ { |
| 338 | ba.Intersects(other) |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | func TestComplement(t *testing.T) { |
| 343 | ba := newBitArray(10) |
nothing calls this directly
no test coverage detected
searching dependent graphs…