MCPcopy
hub / github.com/RoaringBitmap/roaring / TestStringer

Function TestStringer

roaring_test.go:851–862  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

849}
850
851func TestStringer(t *testing.T) {
852 v := NewBitmap()
853 for i := uint32(0); i < 10; i++ {
854 v.Add(i)
855 }
856
857 assert.Equal(t, "{0,1,2,3,4,5,6,7,8,9}", v.String())
858
859 v.RunOptimize()
860
861 assert.Equal(t, "{0,1,2,3,4,5,6,7,8,9}", v.String())
862}
863
864func TestFastCard(t *testing.T) {
865 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…