Generate test data with the given number of columns.
| 836 | |
| 837 | // Generate test data with the given number of columns. |
| 838 | std::string MakeLotsOfCsvColumns(int32_t num_columns) { |
| 839 | std::string values, header; |
| 840 | header.reserve(num_columns * 10); |
| 841 | values.reserve(num_columns * 10); |
| 842 | for (int x = 0; x < num_columns; x++) { |
| 843 | if (x != 0) { |
| 844 | header += ","; |
| 845 | values += ","; |
| 846 | } |
| 847 | header += "c" + std::to_string(x); |
| 848 | values += std::to_string(x); |
| 849 | } |
| 850 | |
| 851 | header += "\n"; |
| 852 | values += "\n"; |
| 853 | return MakeCSVData({header, values}); |
| 854 | } |
| 855 | |
| 856 | TEST(BlockParser, LotsOfColumns) { |
| 857 | auto options = ParseOptions::Defaults(); |
no test coverage detected