TODO(jdesprez): Merge the two getReserved attributes once skip is improved
| 3624 | |
| 3625 | // TODO(jdesprez): Merge the two getReserved attributes once skip is improved |
| 3626 | static std::vector<std::string> GetReservedOutputAttributesForElement( |
| 3627 | const std::string& xml_element) { |
| 3628 | if (xml_element == "testsuites") { |
| 3629 | return ArrayAsVector(kReservedTestSuitesAttributes); |
| 3630 | } else if (xml_element == "testsuite") { |
| 3631 | return ArrayAsVector(kReservedTestSuiteAttributes); |
| 3632 | } else if (xml_element == "testcase") { |
| 3633 | return ArrayAsVector(kReservedOutputTestCaseAttributes); |
| 3634 | } else { |
| 3635 | GTEST_CHECK_(false) << "Unrecognized xml_element provided: " << xml_element; |
| 3636 | } |
| 3637 | // This code is unreachable but some compilers may not realizes that. |
| 3638 | return std::vector<std::string>(); |
| 3639 | } |
| 3640 | |
| 3641 | static std::string FormatWordList(const std::vector<std::string>& words) { |
| 3642 | Message word_list; |
no test coverage detected