| 1126 | }; |
| 1127 | |
| 1128 | inline EntityKeyValue* findKeyValue(Entity* entity, const std::string& keyToFind) |
| 1129 | { |
| 1130 | EntityKeyValue* keyValue = nullptr; |
| 1131 | |
| 1132 | entity->forEachEntityKeyValue([&](const std::string& key, EntityKeyValue& value) |
| 1133 | { |
| 1134 | if (!keyValue && key == keyToFind) |
| 1135 | { |
| 1136 | keyValue = &value; |
| 1137 | } |
| 1138 | }); |
| 1139 | |
| 1140 | return keyValue; |
| 1141 | } |
| 1142 | |
| 1143 | inline void expectKeyValuesAreEquivalent(const std::vector<std::pair<std::string, std::string>>& stack1, |
| 1144 | const std::vector<std::pair<std::string, std::string>>& stack2) |
no test coverage detected