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

Function UNIT_CLASS_TEST

generator/generator_tests/affiliation_tests.cpp:157–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155} // namespace
156
157UNIT_CLASS_TEST(AffiliationTests, SingleAffiliationTests)
158{
159 std::string const kName = "Name";
160 feature::SingleAffiliation affiliation(kName);
161
162 TEST(Test(affiliation.GetAffiliations(AffiliationTests::kPointInsideOne1), {kName}), ());
163
164 TEST(Test(affiliation.GetAffiliations(AffiliationTests::kPointInsideOneAndTwo1), {kName}), ());
165
166 TEST(Test(affiliation.GetAffiliations(
167 AffiliationTests::MakeLineFb({AffiliationTests::kPointInsideOne1, AffiliationTests::kPointInsideTwo1})),
168 {kName}),
169 ());
170
171 TEST(affiliation.HasCountryByName(kName), ());
172 TEST(!affiliation.HasCountryByName("NoName"), ());
173}
174
175UNIT_CLASS_TEST(AffiliationTests, CountriesFilesAffiliationTests)
176{

Callers

nothing calls this directly

Calls 4

TESTFunction · 0.85
TestFunction · 0.70
GetAffiliationsMethod · 0.45
HasCountryByNameMethod · 0.45

Tested by

no test coverage detected