| 3271 | } |
| 3272 | |
| 3273 | static std::vector<std::string> GetReservedAttributesForElement( |
| 3274 | const std::string& xml_element) { |
| 3275 | if (xml_element == "testsuites") { |
| 3276 | return ArrayAsVector(kReservedTestSuitesAttributes); |
| 3277 | } else if (xml_element == "testsuite") { |
| 3278 | return ArrayAsVector(kReservedTestSuiteAttributes); |
| 3279 | } else if (xml_element == "testcase") { |
| 3280 | return ArrayAsVector(kReservedTestCaseAttributes); |
| 3281 | } else { |
| 3282 | GTEST_CHECK_(false) << "Unrecognized xml_element provided: " << xml_element; |
| 3283 | } |
| 3284 | // This code is unreachable but some compilers may not realizes that. |
| 3285 | return std::vector<std::string>(); |
| 3286 | } |
| 3287 | |
| 3288 | static std::string FormatWordList(const std::vector<std::string>& words) { |
| 3289 | Message word_list; |
no test coverage detected