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

Method SetUp

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

Source from the content-addressed store, hash-verified

1263 typedef typename Attrs::Type Type;
1264
1265 virtual void SetUp() {
1266 TestBuilder::SetUp();
1267
1268 type_ = Attrs::type();
1269
1270 std::unique_ptr<ArrayBuilder> tmp;
1271 ASSERT_OK(MakeBuilder(pool_, type_, &tmp));
1272 builder_.reset(checked_cast<BuilderType*>(tmp.release()));
1273
1274 ASSERT_OK(MakeBuilder(pool_, type_, &tmp));
1275 builder_nn_.reset(checked_cast<BuilderType*>(tmp.release()));
1276 }
1277
1278 void RandomData(int64_t N, double pct_null = 0.1) {
1279 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