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

Function TestStringer

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

Source from the content-addressed store, hash-verified

175}
176
177func TestStringer(t *testing.T) {
178 v := NewBitmap()
179 for i := uint64(0); i < 10; i++ {
180 v.Add(i)
181 }
182
183 assert.Equal(t, "{0,1,2,3,4,5,6,7,8,9}", v.String())
184
185 v.RunOptimize()
186
187 assert.Equal(t, "{0,1,2,3,4,5,6,7,8,9}", v.String())
188}
189
190func TestFastCard(t *testing.T) {
191 bm := NewBitmap()

Callers

nothing calls this directly

Calls 4

AddMethod · 0.95
StringMethod · 0.95
RunOptimizeMethod · 0.95
NewBitmapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…