MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / GetReservedAttributesForElement

Function GetReservedAttributesForElement

test/common/gtest/gtest.cpp:3588–3601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3586}
3587
3588static 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
3603static std::string FormatWordList(const std::vector<std::string>& words) {
3604 Message word_list;

Callers 2

ValidateTestPropertyMethod · 0.85
OutputXmlAttributeMethod · 0.85

Calls 1

ArrayAsVectorFunction · 0.85

Tested by

no test coverage detected