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

Function TestIssue440

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

Source from the content-addressed store, hash-verified

271}
272
273func TestIssue440(t *testing.T) {
274 a := NewBitmap()
275 a.AddMany([]uint32{1, 2, 3})
276 a.RunOptimize()
277 b1, err := a.MarshalBinary()
278 require.NoError(t, err)
279 a.RunOptimize()
280 b2, err := a.MarshalBinary()
281 require.NoError(t, err)
282 require.Equal(t, b1, b2)
283}
284
285func TestIssue440_2(t *testing.T) {
286 a := NewBitmap()

Callers

nothing calls this directly

Calls 4

AddManyMethod · 0.95
RunOptimizeMethod · 0.95
MarshalBinaryMethod · 0.95
NewBitmapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…