MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / ValidateTestPropertyName

Function ValidateTestPropertyName

cpp/test/src/gtest.cc:2138–2148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2136}
2137
2138bool ValidateTestPropertyName(const std::string& property_name,
2139 const std::vector<std::string>& reserved_names) {
2140 if (std::find(reserved_names.begin(), reserved_names.end(), property_name) !=
2141 reserved_names.end()) {
2142 ADD_FAILURE() << "Reserved key used in RecordProperty(): " << property_name
2143 << " (" << FormatWordList(reserved_names)
2144 << " are reserved by " << GTEST_NAME_ << ")";
2145 return false;
2146 }
2147 return true;
2148}
2149
2150// Adds a failure if the key is a reserved attribute of the element named
2151// 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