| 59 | } |
| 60 | |
| 61 | WriteOptions DefaultTestOptions(bool include_header = false, |
| 62 | const std::string& null_string = "", |
| 63 | QuotingStyle quoting_style = QuotingStyle::Needed, |
| 64 | const std::string& eol = "\n", char delimiter = ',', |
| 65 | int batch_size = 5, |
| 66 | QuotingStyle quoting_header = QuotingStyle::Needed) { |
| 67 | WriteOptions options; |
| 68 | options.batch_size = batch_size; |
| 69 | options.include_header = include_header; |
| 70 | options.quoting_header = quoting_header; |
| 71 | options.null_string = null_string; |
| 72 | options.eol = eol; |
| 73 | options.quoting_style = quoting_style; |
| 74 | options.delimiter = delimiter; |
| 75 | return options; |
| 76 | } |
| 77 | |
| 78 | std::string UtilGetExpectedWithEOL(const std::string& eol) { |
| 79 | return std::string("1,,-1,,,,,") + eol + // line 1 |