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

Function UNIT_TEST

libs/routing/routing_tests/restriction_test.cpp:403–410  ·  view source on GitHub ↗

Route through flag graph without any restrictions.

Source from the content-addressed store, hash-verified

401
402// Route through flag graph without any restrictions.
403UNIT_TEST(FlagGraph)
404{
405 unique_ptr<WorldGraph> graph = BuildFlagGraph();
406 auto starter = MakeStarter(MakeFakeEnding(0 /* featureId */, 0 /* segmentIdx */, m2::PointD(2, 0), *graph),
407 MakeFakeEnding(6, 0, m2::PointD(0.5, 1), *graph), *graph);
408 vector<m2::PointD> const expectedGeom = {{2 /* x */, 0 /* y */}, {1, 0}, {1, 1}, {0.5, 1}};
409 TestRouteGeometry(*starter, Algorithm::Result::OK, expectedGeom);
410}
411
412// Route through flag graph with one restriciton (type no) from F0 to F3.
413UNIT_CLASS_TEST(RestrictionTest, FlagGraph_RestrictionF0F3No)

Callers

nothing calls this directly

Calls 7

BuildFlagGraphFunction · 0.85
MakeStarterFunction · 0.85
TestRouteGeometryFunction · 0.85
BuildPosterGraphFunction · 0.85
BuildTwoWayGraphFunction · 0.85
BuildSquaresGraphFunction · 0.85
MakeFakeEndingFunction · 0.70

Tested by

no test coverage detected