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

Function TestSumWithNegative

BitSliceIndexing/bsi_test.go:382–388  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

380}
381
382func TestSumWithNegative(t *testing.T) {
383 bsi := setupNegativeBoundary()
384 assert.Equal(t, uint64(11), bsi.GetCardinality())
385 sum, cnt := bsi.Sum(bsi.GetExistenceBitmap())
386 assert.Equal(t, uint64(11), cnt)
387 assert.Equal(t, int64(0), sum)
388}
389
390func TestGEWithNegative(t *testing.T) {
391 bsi := setupNegativeBoundary()

Callers

nothing calls this directly

Calls 4

setupNegativeBoundaryFunction · 0.70
GetCardinalityMethod · 0.45
SumMethod · 0.45
GetExistenceBitmapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…