| 74 | } |
| 75 | |
| 76 | bool 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 | |
| 92 | struct Loader |
| 93 | { |
nothing calls this directly
no test coverage detected