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

Method ExecuteSpaced

cpp/src/parquet/encoding_test.cc:262–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261
262 void ExecuteSpaced(int nvalues, int repeats, int64_t valid_bits_offset,
263 double null_probability) {
264 InitData(nvalues, repeats);
265
266 int64_t size = num_values_ + valid_bits_offset;
267 auto rand = ::arrow::random::RandomArrayGenerator(1923);
268 const auto array = rand.UInt8(size, 0, 100, null_probability);
269 const auto valid_bits = array->null_bitmap_data();
270 if (valid_bits) {
271 CheckRoundtripSpaced(valid_bits, valid_bits_offset);
272 }
273 }
274
275 void InitUnencodedByteArrayDataBytes() {
276 // Calculate expected unencoded bytes based on type

Callers 2

TYPED_TESTFunction · 0.80
TEST_FFunction · 0.80

Calls 1

UInt8Method · 0.80

Tested by

no test coverage detected