MCPcopy Create free account
hub / github.com/apache/singa / GetReservedAttributesForElement

Function GetReservedAttributesForElement

test/gtest/gtest-all.cc:3273–3286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3271}
3272
3273static 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
3288static std::string FormatWordList(const std::vector<std::string>& words) {
3289 Message word_list;

Callers 2

ValidateTestPropertyMethod · 0.85
OutputXmlAttributeMethod · 0.85

Calls 1

ArrayAsVectorFunction · 0.85

Tested by

no test coverage detected