| 249 | } |
| 250 | |
| 251 | inline 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 | |
| 267 | inline bool hasKeyValueDifference(const ComparisonResult::EntityDifference& diff, |
| 268 | const std::string& key, const std::string& value, ComparisonResult::KeyValueDifference::Type type) |