| 360 | class TestStructBuilder : public ::testing::Test { |
| 361 | public: |
| 362 | void SetUp() { |
| 363 | auto int32_type = int32(); |
| 364 | auto char_type = int8(); |
| 365 | auto list_type = list(char_type); |
| 366 | |
| 367 | std::vector<std::shared_ptr<DataType>> types = {list_type, int32_type}; |
| 368 | std::vector<std::shared_ptr<Field>> fields; |
| 369 | fields.push_back(field("list", list_type)); |
| 370 | fields.push_back(field("int", int32_type)); |
| 371 | |
| 372 | type_ = struct_(fields); |
| 373 | value_fields_ = fields; |
| 374 | |
| 375 | std::unique_ptr<ArrayBuilder> tmp; |
| 376 | ASSERT_OK(MakeBuilder(pool_, type_, &tmp)); |
| 377 | builder_.reset(checked_cast<StructBuilder*>(tmp.release())); |
| 378 | ASSERT_EQ(2, static_cast<int>(builder_->num_fields())); |
| 379 | } |
| 380 | |
| 381 | void Done() { |
| 382 | std::shared_ptr<Array> out; |
nothing calls this directly
no test coverage detected