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

Function ValidateTestPropertyName

test/common/gtest/gtest.cpp:3617–3627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3615}
3616
3617bool ValidateTestPropertyName(const std::string& property_name,
3618 const std::vector<std::string>& reserved_names) {
3619 if (std::find(reserved_names.begin(), reserved_names.end(), property_name) !=
3620 reserved_names.end()) {
3621 ADD_FAILURE() << "Reserved key used in RecordProperty(): " << property_name
3622 << " (" << FormatWordList(reserved_names)
3623 << " are reserved by " << GTEST_NAME_ << ")";
3624 return false;
3625 }
3626 return true;
3627}
3628
3629// Adds a failure if the key is a reserved attribute of the element named
3630// 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