| 5502 | // ========================================================================================= |
| 5503 | |
| 5504 | void report_query(const QueryData& in) override { |
| 5505 | test_run_start(); |
| 5506 | if(opt.list_reporters) { |
| 5507 | for(auto& curr : getListeners()) |
| 5508 | xml.scopedElement("Listener") |
| 5509 | .writeAttribute("priority", curr.first.first) |
| 5510 | .writeAttribute("name", curr.first.second); |
| 5511 | for(auto& curr : getReporters()) |
| 5512 | xml.scopedElement("Reporter") |
| 5513 | .writeAttribute("priority", curr.first.first) |
| 5514 | .writeAttribute("name", curr.first.second); |
| 5515 | } else if(opt.count || opt.list_test_cases) { |
| 5516 | for(unsigned i = 0; i < in.num_data; ++i) { |
| 5517 | xml.scopedElement("TestCase").writeAttribute("name", in.data[i]->m_name) |
| 5518 | .writeAttribute("testsuite", in.data[i]->m_test_suite) |
| 5519 | .writeAttribute("filename", skipPathFromFilename(in.data[i]->m_file.c_str())) |
| 5520 | .writeAttribute("line", line(in.data[i]->m_line)) |
| 5521 | .writeAttribute("skipped", in.data[i]->m_skip); |
| 5522 | } |
| 5523 | xml.scopedElement("OverallResultsTestCases") |
| 5524 | .writeAttribute("unskipped", in.run_stats->numTestCasesPassingFilters); |
| 5525 | } else if(opt.list_test_suites) { |
| 5526 | for(unsigned i = 0; i < in.num_data; ++i) |
| 5527 | xml.scopedElement("TestSuite").writeAttribute("name", in.data[i]->m_test_suite); |
| 5528 | xml.scopedElement("OverallResultsTestCases") |
| 5529 | .writeAttribute("unskipped", in.run_stats->numTestCasesPassingFilters); |
| 5530 | xml.scopedElement("OverallResultsTestSuites") |
| 5531 | .writeAttribute("unskipped", in.run_stats->numTestSuitesPassingFilters); |
| 5532 | } |
| 5533 | xml.endElement(); |
| 5534 | } |
| 5535 | |
| 5536 | void test_run_start() override { |
| 5537 | xml.writeDeclaration(); |
nothing calls this directly
no test coverage detected