MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / TestBitArrayIntersectsSparse

Function TestBitArrayIntersectsSparse

bitarray/bitarray_test.go:449–466  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

447}
448
449func TestBitArrayIntersectsSparse(t *testing.T) {
450 ba := newBitArray(s * 2)
451 cba := newSparseBitArray()
452
453 assert.True(t, ba.Intersects(cba))
454
455 cba.SetBit(5)
456 assert.False(t, ba.Intersects(cba))
457
458 ba.SetBit(5)
459 assert.True(t, ba.Intersects(cba))
460
461 cba.SetBit(s + 1)
462 assert.False(t, ba.Intersects(cba))
463
464 ba.SetBit(s + 1)
465 assert.True(t, ba.Intersects(cba))
466}
467
468func TestBitArrayEqualsSparse(t *testing.T) {
469 ba := newBitArray(s * 2)

Callers

nothing calls this directly

Calls 4

newBitArrayFunction · 0.85
newSparseBitArrayFunction · 0.85
IntersectsMethod · 0.65
SetBitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…