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

Function TestParAggregations

aggregation_test.go:238–251  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

236}
237
238func TestParAggregations(t *testing.T) {
239 for _, p := range [...]int{1, 2, 4} {
240 andFunc := func(bitmaps ...*Bitmap) *Bitmap {
241 return ParAnd(p, bitmaps...)
242 }
243 orFunc := func(bitmaps ...*Bitmap) *Bitmap {
244 return ParOr(p, bitmaps...)
245 }
246
247 t.Run(fmt.Sprintf("par%d", p), func(t *testing.T) {
248 testAggregations(t, andFunc, orFunc, nil)
249 })
250 }
251}
252
253func TestParHeapAggregations(t *testing.T) {
254 orFunc := func(bitmaps ...*Bitmap) *Bitmap {

Callers

nothing calls this directly

Calls 3

ParAndFunction · 0.85
ParOrFunction · 0.70
testAggregationsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…