| 3586 | } |
| 3587 | |
| 3588 | static std::vector<std::string> GetReservedAttributesForElement( |
| 3589 | const std::string& xml_element) { |
| 3590 | if (xml_element == "testsuites") { |
| 3591 | return ArrayAsVector(kReservedTestSuitesAttributes); |
| 3592 | } else if (xml_element == "testsuite") { |
| 3593 | return ArrayAsVector(kReservedTestSuiteAttributes); |
| 3594 | } else if (xml_element == "testcase") { |
| 3595 | return ArrayAsVector(kReservedTestCaseAttributes); |
| 3596 | } else { |
| 3597 | GTEST_CHECK_(false) << "Unrecognized xml_element provided: " << xml_element; |
| 3598 | } |
| 3599 | // This code is unreachable but some compilers may not realizes that. |
| 3600 | return std::vector<std::string>(); |
| 3601 | } |
| 3602 | |
| 3603 | static std::string FormatWordList(const std::vector<std::string>& words) { |
| 3604 | Message word_list; |
no test coverage detected