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

Function TestOrSparseWithEmptySparse

bitarray/or_test.go:230–244  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

228}
229
230func TestOrSparseWithEmptySparse(t *testing.T) {
231 sba := newSparseBitArray()
232 other := newSparseBitArray()
233
234 sba.SetBit(5)
235
236 result := orSparseWithSparseBitArray(sba, other)
237 assert.Equal(t, sba, result)
238
239 sba.Reset()
240 other.SetBit(5)
241
242 result = orSparseWithSparseBitArray(sba, other)
243 assert.Equal(t, other, result)
244}
245
246func TestOrSparseWithEmptyDense(t *testing.T) {
247 sba := newSparseBitArray()

Callers

nothing calls this directly

Calls 4

newSparseBitArrayFunction · 0.85
SetBitMethod · 0.65
ResetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…