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

Method SetUp

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

Source from the content-addressed store, hash-verified

1325 typedef typename Attrs::Type Type;
1326
1327 virtual void SetUp() {
1328 TestBuilder::SetUp();
1329
1330 type_ = Attrs::type();
1331
1332 std::unique_ptr<ArrayBuilder> tmp;
1333 ASSERT_OK(MakeBuilder(pool_, type_, &tmp));
1334 builder_.reset(checked_cast<BuilderType*>(tmp.release()));
1335
1336 ASSERT_OK(MakeBuilder(pool_, type_, &tmp));
1337 builder_nn_.reset(checked_cast<BuilderType*>(tmp.release()));
1338 }
1339
1340 void RandomData(int64_t N, double pct_null = 0.1) {
1341 Attrs::draw(N, &draws_);

Callers

nothing calls this directly

Calls 4

typeFunction · 0.70
MakeBuilderFunction · 0.70
resetMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected