MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / hasKeyValueDifference

Function hasKeyValueDifference

test/MapMerging.cpp:267–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267inline bool hasKeyValueDifference(const ComparisonResult::EntityDifference& diff,
268 const std::string& key, const std::string& value, ComparisonResult::KeyValueDifference::Type type)
269{
270 for (const auto& difference : diff.differingKeyValues)
271 {
272 if (difference.type == type && difference.key == key && difference.value == value)
273 {
274 return true;
275 }
276 }
277
278 return false;
279}
280
281inline ComparisonResult::EntityDifference getEntityDifference(const ComparisonResult::Ptr& result, const std::string& name)
282{

Callers 1

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected