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

Function UNIT_CLASS_TEST

generator/generator_tests/complex_loader_tests.cpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119UNIT_CLASS_TEST(TestWithClassificator, Complex_IsComplex)
120{
121 auto const filename = "test.csv";
122 ScopedFile sf(filename, kCsv1);
123 auto forest = generator::hierarchy::LoadHierachy(sf.GetFullPath());
124 // We need to sort forest, because LoadHierachy() returns forest, where trees aren't ordered.
125 SortForest(forest);
126 TEST_EQUAL(forest.size(), 2, ());
127 TEST(!generator::IsComplex(forest[0]), ());
128 TEST(generator::IsComplex(forest[1]), ());
129}
130
131UNIT_CLASS_TEST(TestWithClassificator, Complex_GetCountry)
132{

Callers

nothing calls this directly

Calls 9

LoadHierachyFunction · 0.85
SortForestFunction · 0.85
TESTFunction · 0.85
IsComplexFunction · 0.85
GetCountryFunction · 0.85
SizeFunction · 0.85
sizeMethod · 0.45
SizeMethod · 0.45
ForEachTreeMethod · 0.45

Tested by

no test coverage detected