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

Method SetUp

cpp/src/arrow/array/array_union_test.cc:249–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247class TestUnionArrayFactories : public ::testing::Test {
248 public:
249 void SetUp() {
250 pool_ = default_memory_pool();
251 type_codes_ = {1, 2, 4, 127};
252 ArrayFromVector<Int8Type>({0, 1, 2, 0, 1, 3, 2, 0, 2, 1}, &type_ids_);
253 ArrayFromVector<Int8Type>({1, 2, 4, 1, 2, 127, 4, 1, 4, 2}, &logical_type_ids_);
254 ArrayFromVector<Int8Type>({1, 2, 4, 1, -2, 127, 4, 1, 4, 2}, &invalid_type_ids1_);
255 ArrayFromVector<Int8Type>({1, 2, 4, 1, 3, 127, 4, 1, 4, 2}, &invalid_type_ids2_);
256 }
257
258 void CheckUnionArray(const UnionArray& array, UnionMode::type mode,
259 const std::vector<std::string>& field_names,

Callers

nothing calls this directly

Calls 1

default_memory_poolFunction · 0.85

Tested by

no test coverage detected