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

Function UNIT_TEST

libs/routing/routing_tests/cumulative_restriction_test.cpp:78–86  ·  view source on GitHub ↗

Route through XY graph without any restrictions.

Source from the content-addressed store, hash-verified

76
77// Route through XY graph without any restrictions.
78UNIT_TEST(XYGraph)
79{
80 unique_ptr<WorldGraph> graph = BuildXYGraph();
81 auto const start = MakeFakeEnding(1 /* featureId */, 0 /* segmentIdx */, m2::PointD(2, 0), *graph);
82 auto const finish = MakeFakeEnding(5, 0, m2::PointD(2, 3), *graph);
83 auto starter = MakeStarter(start, finish, *graph);
84 vector<m2::PointD> const expectedGeom = {{2 /* x */, 0 /* y */}, {1, 1}, {2, 2}, {2, 3}};
85 TestRouteGeometry(*starter, Algorithm::Result::OK, expectedGeom);
86}
87
88// Route through XY graph with one restriciton (type only) from F1 to F3.
89UNIT_CLASS_TEST(RestrictionTest, XYGraph_RestrictionF1F3Only)

Callers

nothing calls this directly

Calls 4

BuildXYGraphFunction · 0.85
MakeStarterFunction · 0.85
TestRouteGeometryFunction · 0.85
MakeFakeEndingFunction · 0.70

Tested by

no test coverage detected