MCPcopy Create free account
hub / github.com/Workiva/go-datastructures / TestComplementResetsBounds

Function TestComplementResetsBounds

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

Source from the content-addressed store, hash-verified

438}
439
440func TestComplementResetsBounds(t *testing.T) {
441 ba := newBitArray(5)
442
443 ba.complement()
444 assert.True(t, ba.anyset)
445 assert.Equal(t, uint64(0), ba.lowest)
446 assert.Equal(t, uint64(s-1), ba.highest)
447}
448
449func TestBitArrayIntersectsSparse(t *testing.T) {
450 ba := newBitArray(s * 2)

Callers

nothing calls this directly

Calls 2

newBitArrayFunction · 0.85
complementMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…