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

Function TEST

cpp/src/arrow/util/int_util_test.cc:129–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127std::vector<uint64_t> valid_uint64 = {0, 0x100000000ULL, 0xffffffffffffffffULL};
128
129TEST(UIntWidth, NoNulls) {
130 std::vector<uint64_t> values{0, 0x7f, 0xff};
131 CheckUIntWidth(values, 1);
132
133 values = {0, 0x100};
134 CheckUIntWidth(values, 2);
135
136 values = {0, 0xffff};
137 CheckUIntWidth(values, 2);
138
139 values = {0, 0x10000};
140 CheckUIntWidth(values, 4);
141
142 values = {0, 0xffffffffULL};
143 CheckUIntWidth(values, 4);
144
145 values = {0, 0x100000000ULL};
146 CheckUIntWidth(values, 8);
147
148 values = {0, 0xffffffffffffffffULL};
149 CheckUIntWidth(values, 8);
150}
151
152TEST(UIntWidth, Nulls) {
153 std::vector<uint8_t> valid10{true, false};

Callers

nothing calls this directly

Calls 15

CheckUIntWidthFunction · 0.85
MakeRandomVectorFunction · 0.85
CheckIntWidthFunction · 0.85
TransposeIntsFunction · 0.85
AllocateBitmapFunction · 0.85
CheckIndexBoundsFunction · 0.85
ClearBitFunction · 0.85
BoundsCheckPassesFunction · 0.85
BoundsCheckFailsFunction · 0.85
CheckIntegersInRangeFunction · 0.85
CheckInRangePassesFunction · 0.85
CheckInRangeFailsFunction · 0.85

Tested by

no test coverage detected