| 137 | } |
| 138 | |
| 139 | void JSONPrinter::print_errors_footer() |
| 140 | { |
| 141 | print_separator(_first_test_entry); |
| 142 | |
| 143 | *_stream << R"("errors" : [)"; |
| 144 | print_strings(_errors.begin(), _errors.end()); |
| 145 | *_stream << "]"; |
| 146 | |
| 147 | *_stream << R"(, "expected_errors" : [)"; |
| 148 | print_strings(_expected_errors.begin(), _expected_errors.end()); |
| 149 | *_stream << "]"; |
| 150 | |
| 151 | *_stream << R"(, "warnings" : [)"; |
| 152 | print_strings(_warnings.begin(), _warnings.end()); |
| 153 | *_stream << "]"; |
| 154 | |
| 155 | *_stream << R"(, "infos" : [)"; |
| 156 | print_strings(_infos.begin(), _infos.end()); |
| 157 | *_stream << "]"; |
| 158 | } |
| 159 | |
| 160 | void JSONPrinter::print_error(const std::exception &error, bool expected) |
| 161 | { |