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

Function TestBitmapRank2

roaring64/roaring64_test.go:292–300  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

290}
291
292func TestBitmapRank2(t *testing.T) {
293 r := NewBitmap()
294 for i := uint64(1); i < 8194; i += 2 {
295 r.Add(i)
296 }
297
298 rank := r.Rank(63)
299 assert.EqualValues(t, 32, rank)
300}
301
302func TestBitmapRank(t *testing.T) {
303 for n := uint64(1); n <= 1048576; n *= 2 {

Callers

nothing calls this directly

Calls 3

AddMethod · 0.95
RankMethod · 0.95
NewBitmapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…