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

Function expectKeyValuesAreEquivalent

test/Entity.cpp:1143–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1141}
1142
1143inline void expectKeyValuesAreEquivalent(const std::vector<std::pair<std::string, std::string>>& stack1,
1144 const std::vector<std::pair<std::string, std::string>>& stack2)
1145{
1146 EXPECT_EQ(stack1.size(), stack2.size()) << "Stack1 differs from Stack 2 in size";
1147
1148 for (const auto& pair : stack1)
1149 {
1150 EXPECT_TRUE(stackHasKeyValuePair(stack2, pair.first, pair.second)) <<
1151 "Stack 2 was missing the key value pair " << pair.first << " = " << pair.second;
1152 }
1153}
1154
1155}
1156

Callers 1

TEST_FFunction · 0.85

Calls 2

stackHasKeyValuePairFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected