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

Function countPrimitiveDifference

test/MapMerging.cpp:251–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251inline std::size_t countPrimitiveDifference(const ComparisonResult::EntityDifference& diff,
252 const ComparisonResult::PrimitiveDifference::Type type)
253{
254 std::size_t count = 0;
255
256 for (const auto& difference : diff.differingChildren)
257 {
258 if (difference.type == type)
259 {
260 ++count;
261 }
262 }
263
264 return count;
265}
266
267inline bool hasKeyValueDifference(const ComparisonResult::EntityDifference& diff,
268 const std::string& key, const std::string& value, ComparisonResult::KeyValueDifference::Type type)

Callers 1

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected