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

Function TEST

cpp/src/arrow/util/bit_util_test.cc:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56using util::SafeCopy;
57
58TEST(BitUtilTests, TestIsMultipleOf64) {
59 using bit_util::IsMultipleOf64;
60 EXPECT_TRUE(IsMultipleOf64(64));
61 EXPECT_TRUE(IsMultipleOf64(0));
62 EXPECT_TRUE(IsMultipleOf64(128));
63 EXPECT_TRUE(IsMultipleOf64(192));
64 EXPECT_FALSE(IsMultipleOf64(23));
65 EXPECT_FALSE(IsMultipleOf64(32));
66}
67
68TEST(BitUtilTests, TestNextPower2) {
69 using bit_util::NextPower2;

Callers

nothing calls this directly

Calls 15

IsMultipleOf64Function · 0.85
NextPower2Function · 0.85
BytesForBitsFunction · 0.85
SlowCountBitsFunction · 0.85
AssertBytesEqualFunction · 0.85
SetBitmapFunction · 0.85
ClearBitmapFunction · 0.85
default_memory_poolFunction · 0.85
InvertBitmapFunction · 0.85
ReverseBitmapFunction · 0.85
CeilDivFunction · 0.85
RoundUpFunction · 0.85

Tested by

no test coverage detected