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

Method ExecuteSpacedBound

cpp/src/parquet/encoding_test.cc:1778–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1776 }
1777
1778 void ExecuteSpacedBound(int nvalues, int repeats, int64_t valid_bits_offset,
1779 double null_probability, c_type half_range) {
1780 InitBoundData(nvalues, repeats, half_range);
1781
1782 int64_t size = num_values_ + valid_bits_offset;
1783 auto rand = ::arrow::random::RandomArrayGenerator(1923);
1784 const auto array = rand.UInt8(size, 0, 100, null_probability);
1785 const auto valid_bits = array->null_bitmap_data();
1786 CheckRoundtripSpaced(valid_bits, valid_bits_offset);
1787 }
1788
1789 void CheckDecoding() { CheckDecoding(std::span(draws_, num_values_)); }
1790

Callers 1

TYPED_TESTFunction · 0.80

Calls 1

UInt8Method · 0.80

Tested by

no test coverage detected