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

Function assertAggregation

roaring64/aggregation64_test.go:221–225  ·  view source on GitHub ↗
(t *testing.T, expected uint64, aggr func(bitmaps ...*Bitmap) *Bitmap, bitmaps ...*Bitmap)

Source from the content-addressed store, hash-verified

219}
220
221func assertAggregation(t *testing.T, expected uint64, aggr func(bitmaps ...*Bitmap) *Bitmap, bitmaps ...*Bitmap) {
222 if aggr != nil {
223 assert.Equal(t, aggr(bitmaps...).GetCardinality(), expected)
224 }
225}
226
227func TestParAggregations(t *testing.T) {
228 for _, p := range [...]int{0, 1, 2, 4} {

Callers 1

testAggregationsFunction · 0.70

Calls 1

GetCardinalityMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…