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

Method TestUnpackZeros

cpp/src/arrow/util/bpacking_test.cc:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132 template <typename Int>
133 void TestUnpackZeros(UnpackFunc<Int> unpack, const UnpackOptions& opts) {
134 const auto num_bytes = GetNumBytes(opts.batch_size, opts.bit_width, opts.bit_offset);
135
136 const std::vector<uint8_t> packed(static_cast<std::size_t>(num_bytes), uint8_t{0});
137 const auto unpacked = UnpackValues(packed.data(), opts, unpack);
138
139 const std::vector<Int> expected(static_cast<std::size_t>(opts.batch_size), Int{0});
140 EXPECT_EQ(unpacked, expected);
141 }
142
143 template <typename Int>
144 void TestUnpackOnes(UnpackFunc<Int> unpack, const UnpackOptions& opts) {

Callers

nothing calls this directly

Calls 3

UnpackValuesFunction · 0.85
GetNumBytesFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected