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

Function UNIT_TEST

generator/generator_tests/restriction_test.cpp:259–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259UNIT_TEST(RestrictionGenerationTest_1)
260{
261 string osmIdsToFeatureIdsContent;
262 unique_ptr<IndexGraph> indexGraph;
263 tie(indexGraph, osmIdsToFeatureIdsContent) = BuildTwoCubeGraph();
264
265 string const restrictionPath =
266 /* Type ViaType ViaNodeCoords: x y from to */
267 R"(Only, node, 1.0, 0.0, 0, 1)";
268
269 vector<Restriction> expectedNotUTurn = {{Restriction::Type::Only, {0, 1}}};
270 vector<RestrictionUTurnForTests> expectedUTurn;
271
272 TestRestrictionBuilding(restrictionPath, osmIdsToFeatureIdsContent, std::move(indexGraph), expectedNotUTurn,
273 expectedUTurn);
274}
275
276UNIT_TEST(RestrictionGenerationTest_2)
277{

Callers

nothing calls this directly

Calls 2

TestRestrictionBuildingFunction · 0.85
BuildTwoCubeGraphFunction · 0.70

Tested by

no test coverage detected