MCPcopy Create free account
hub / github.com/comaps/comaps / Test

Function Test

generator/generator_tests/affiliation_tests.cpp:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93std::string const AffiliationTests::kTwo = "Two";
94
95bool Test(std::vector<std::string> && res, std::set<std::string> const & answ)
96{
97 if (res.size() != answ.size())
98 return false;
99
100 std::set<std::string> r;
101 std::move(std::begin(res), std::end(res), std::inserter(r, std::begin(r)));
102 return r == answ;
103}
104
105void TestCountriesAffiliationInsideBorders(feature::AffiliationInterface const & affiliation)
106{

Callers 4

UNIT_CLASS_TESTFunction · 0.70
UNIT_CLASS_TESTFunction · 0.70

Calls 3

beginFunction · 0.50
endFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected