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

Function ValidateTestPropertyName

tests/gtest/gtest-all.cc:3655–3666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3653}
3654
3655static bool ValidateTestPropertyName(
3656 const std::string& property_name,
3657 const std::vector<std::string>& reserved_names) {
3658 if (std::find(reserved_names.begin(), reserved_names.end(), property_name) !=
3659 reserved_names.end()) {
3660 ADD_FAILURE() << "Reserved key used in RecordProperty(): " << property_name
3661 << " (" << FormatWordList(reserved_names)
3662 << " are reserved by " << GTEST_NAME_ << ")";
3663 return false;
3664 }
3665 return true;
3666}
3667
3668// Adds a failure if the key is a reserved attribute of the element named
3669// xml_element. Returns true if the property is valid.

Callers 1

ValidateTestPropertyMethod · 0.85

Calls 3

FormatWordListFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected