MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / TestTransposeWithCounts

Function TestTransposeWithCounts

BitSliceIndexing/bsi_test.go:359–366  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

357}
358
359func TestTransposeWithCounts(t *testing.T) {
360 bsi := setup()
361 bsi.SetValue(101, 50)
362 transposed := bsi.TransposeWithCounts(0, bsi.GetExistenceBitmap())
363 a, ok := transposed.GetValue(uint64(50))
364 assert.True(t, ok)
365 assert.Equal(t, int64(2), a)
366}
367
368func TestRangeAllNegative(t *testing.T) {
369 bsi := setupAllNegative()

Callers

nothing calls this directly

Calls 5

setupFunction · 0.70
SetValueMethod · 0.45
TransposeWithCountsMethod · 0.45
GetExistenceBitmapMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…