MCPcopy Create free account
hub / github.com/apache/impala / CheckAll

Function CheckAll

be/src/util/bitmap-test.cc:35–40  ·  view source on GitHub ↗

Returns true if all the bits in the bitmap are equal to 'value'.

Source from the content-addressed store, hash-verified

33
34// Returns true if all the bits in the bitmap are equal to 'value'.
35bool CheckAll(const Bitmap& bitmap, const bool value) {
36 for (int64_t i = 0; i < bitmap.num_bits(); ++i) {
37 if (bitmap.Get(i) != value) return false;
38 }
39 return true;
40}
41
42TEST(Bitmap, SetupTest) {
43 Bitmap bm1(0);

Callers 1

TESTFunction · 0.85

Calls 2

num_bitsMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected