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

Function TestIssue440_5

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

Source from the content-addressed store, hash-verified

319}
320
321func TestIssue440_5(t *testing.T) {
322 a := NewBitmap()
323 a.AddMany([]uint32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14})
324 a.RunOptimize()
325 b1, err := a.MarshalBinary()
326 require.NoError(t, err)
327 a.RunOptimize()
328 b2, err := a.MarshalBinary()
329 require.NoError(t, err)
330 require.Equal(t, b1, b2)
331}
332
333func checkValidity(t *testing.T, rb *Bitmap) {
334 t.Helper()

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…