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

Function LoadCityRoads

generator/generator_tests/city_roads_tests.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::unique_ptr<CityRoads> LoadCityRoads(LocalCountryFile const & country)
51{
52 FrozenDataSource dataSource;
53 auto const regResult = dataSource.RegisterMap(country);
54 TEST_EQUAL(regResult.second, MwmSet::RegResult::Success, ());
55
56 MwmSet::MwmHandle handle(dataSource.GetMwmHandleById(regResult.first));
57 TEST(handle.IsAlive(), ());
58 return routing::LoadCityRoads(handle);
59}
60
61/// \brief Builds mwm with city_roads section, read the section and compare original feature ids
62/// and read ones.

Callers 1

TestCityRoadsBuildingFunction · 0.70

Calls 4

TESTFunction · 0.85
RegisterMapMethod · 0.45
GetMwmHandleByIdMethod · 0.45
IsAliveMethod · 0.45

Tested by

no test coverage detected