Generate test data with the given number of columns.
| 903 | |
| 904 | // Generate test data with the given number of columns. |
| 905 | std::string MakeLotsOfCsvColumns(int32_t num_columns) { |
| 906 | std::string values, header; |
| 907 | header.reserve(num_columns * 10); |
| 908 | values.reserve(num_columns * 10); |
| 909 | for (int x = 0; x < num_columns; x++) { |
| 910 | if (x != 0) { |
| 911 | header += ","; |
| 912 | values += ","; |
| 913 | } |
| 914 | header += "c" + std::to_string(x); |
| 915 | values += std::to_string(x); |
| 916 | } |
| 917 | |
| 918 | header += "\n"; |
| 919 | values += "\n"; |
| 920 | return MakeCSVData({header, values}); |
| 921 | } |
| 922 | |
| 923 | TEST(BlockParser, LotsOfColumns) { |
| 924 | auto options = ParseOptions::Defaults(); |
no test coverage detected