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

Method RandomData

cpp/src/arrow/array/array_test.cc:1278–1283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1276 }
1277
1278 void RandomData(int64_t N, double pct_null = 0.1) {
1279 Attrs::draw(N, &draws_);
1280
1281 valid_bytes_.resize(static_cast<size_t>(N));
1282 random_null_bytes(N, pct_null, valid_bytes_.data());
1283 }
1284
1285 void Check(const std::unique_ptr<BuilderType>& builder, bool nullable) {
1286 int64_t size = builder->length();

Callers 1

TYPED_TESTFunction · 0.80

Calls 3

random_null_bytesFunction · 0.85
resizeMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected