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

Function TestAndSparseWithEmptySparse

bitarray/and_test.go:165–176  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

163}
164
165func TestAndSparseWithEmptySparse(t *testing.T) {
166 sba := newSparseBitArray()
167 other := newSparseBitArray()
168
169 sba.SetBit(5)
170
171 ba := andSparseWithSparseBitArray(sba, other)
172
173 checkBit(t, ba, 0, false)
174 checkBit(t, ba, 5, false)
175 checkBit(t, ba, 100, false)
176}
177
178func TestAndSparseWithEmptyDense(t *testing.T) {
179 sba := newSparseBitArray()

Callers

nothing calls this directly

Calls 4

newSparseBitArrayFunction · 0.85
checkBitFunction · 0.85
SetBitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…