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

Function TestTable

generator/generator_tests/place_processor_tests.cpp:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool TestTable(generator::OsmIdToBoundariesTable & table,
77 std::set<std::pair<std::vector<base::GeoObjectId>, size_t>> const & answer)
78{
79 bool result = true;
80 table.ForEachCluster([&](auto & ids, auto const & boundaries)
81 {
82 if (!result)
83 return;
84
85 std::sort(std::begin(ids), std::end(ids));
86 if (!answer.count(std::make_pair(ids, boundaries.size())))
87 result = false;
88 });
89 return result;
90}
91
92struct Loader
93{

Callers

nothing calls this directly

Calls 5

ForEachClusterMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
countMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected