| 79 | } |
| 80 | |
| 81 | void AssertUnconvertedStructArraysEqual(const StructArray& expected, |
| 82 | const StructArray& actual) { |
| 83 | ASSERT_EQ(expected.num_fields(), actual.num_fields()); |
| 84 | for (int i = 0; i < expected.num_fields(); ++i) { |
| 85 | auto expected_name = expected.type()->field(i)->name(); |
| 86 | auto actual_name = actual.type()->field(i)->name(); |
| 87 | ASSERT_EQ(expected_name, actual_name); |
| 88 | AssertUnconvertedArraysEqual(*expected.field(i), *actual.field(i)); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | void AssertParseColumns(ParseOptions options, string_view src_str, |
| 93 | const std::vector<std::shared_ptr<Field>>& fields, |
no test coverage detected