| 31 | } |
| 32 | |
| 33 | void MakeCSVParser(std::vector<std::string> lines, ParseOptions options, int32_t num_cols, |
| 34 | MemoryPool* pool, std::shared_ptr<BlockParser>* out) { |
| 35 | auto csv = MakeCSVData(lines); |
| 36 | auto parser = std::make_shared<BlockParser>(pool, options, num_cols); |
| 37 | uint32_t out_size; |
| 38 | ASSERT_OK(parser->Parse(std::string_view(csv), &out_size)); |
| 39 | ASSERT_EQ(out_size, csv.size()) << "trailing CSV data not parsed"; |
| 40 | *out = parser; |
| 41 | } |
| 42 | |
| 43 | void MakeCSVParser(std::vector<std::string> lines, ParseOptions options, |
| 44 | std::shared_ptr<BlockParser>* out) { |
no test coverage detected