MCPcopy Create free account
hub / github.com/apache/arrow / TEST

Function TEST

cpp/src/gandiva/precompiled/bitmap_test.cc:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace gandiva {
22
23TEST(TestBitMap, TestSimple) {
24 static const int kNumBytes = 16;
25 uint8_t bit_map[kNumBytes];
26 memset(bit_map, 0, kNumBytes);
27
28 EXPECT_EQ(bitMapGetBit(bit_map, 100), false);
29
30 // set 100th bit and verify
31 bitMapSetBit(bit_map, 100, true);
32 EXPECT_EQ(bitMapGetBit(bit_map, 100), true);
33
34 // clear 100th bit and verify
35 bitMapSetBit(bit_map, 100, false);
36 EXPECT_EQ(bitMapGetBit(bit_map, 100), false);
37}
38
39TEST(TestBitMap, TestClearIfFalse) {
40 static const int kNumBytes = 32;

Callers

nothing calls this directly

Calls 3

bitMapGetBitFunction · 0.85
bitMapSetBitFunction · 0.85
bitMapClearBitIfFalseFunction · 0.85

Tested by

no test coverage detected