MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / GetReservedOutputAttributesForElement

Function GetReservedOutputAttributesForElement

tests/gtest/gtest-all.cc:3626–3639  ·  view source on GitHub ↗

TODO(jdesprez): Merge the two getReserved attributes once skip is improved

Source from the content-addressed store, hash-verified

3624
3625// TODO(jdesprez): Merge the two getReserved attributes once skip is improved
3626static 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
3641static std::string FormatWordList(const std::vector<std::string>& words) {
3642 Message word_list;

Callers 2

OutputXmlAttributeMethod · 0.85
OutputJsonKeyMethod · 0.85

Calls 1

ArrayAsVectorFunction · 0.85

Tested by

no test coverage detected