Add a row to the table. This must have the same width as labels.
| 43 | |
| 44 | // Add a row to the table. This must have the same width as labels. |
| 45 | void TablePrinter::AddRow(const vector<string>& row) { |
| 46 | DCHECK_EQ(row.size(), labels_.size()); |
| 47 | rows_.push_back(row); |
| 48 | for (int i = 0; i < row.size(); ++i) { |
| 49 | if (row[i].size() > max_col_widths_[i]) max_col_widths_[i] = row[i].size(); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void TablePrinter::PrintRow(stringstream* s, const vector<string>& row, |
| 54 | const vector<int>& widths) const { |
no test coverage detected