| 508 | } |
| 509 | |
| 510 | void AppendListOfInferred(std::shared_ptr<ListArray>* actual) { |
| 511 | ListBuilder list_builder(default_memory_pool(), union_builder); |
| 512 | |
| 513 | ASSERT_OK(list_builder.Append()); |
| 514 | I8 = union_builder->AppendChild(i8_builder, "i8"); |
| 515 | ASSERT_EQ(I8, 0); |
| 516 | AppendInt(10); |
| 517 | |
| 518 | ASSERT_OK(list_builder.Append()); |
| 519 | STR = union_builder->AppendChild(str_builder, "str"); |
| 520 | ASSERT_EQ(STR, 1); |
| 521 | AppendString("abc"); |
| 522 | AppendInt(-10); |
| 523 | |
| 524 | ASSERT_OK(list_builder.Append()); |
| 525 | DBL = union_builder->AppendChild(dbl_builder, "dbl"); |
| 526 | ASSERT_EQ(DBL, 2); |
| 527 | AppendDouble(0.5); |
| 528 | |
| 529 | ASSERT_OK(list_builder.Finish(actual)); |
| 530 | ASSERT_OK((*actual)->ValidateFull()); |
| 531 | ArrayFromVector<Int8Type, uint8_t>(expected_types_vector, &expected_types); |
| 532 | } |
| 533 | |
| 534 | std::vector<uint8_t> expected_types_vector; |
| 535 | std::shared_ptr<Array> expected_types; |
nothing calls this directly
no test coverage detected