Route through XY graph without any restrictions.
| 76 | |
| 77 | // Route through XY graph without any restrictions. |
| 78 | UNIT_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. |
| 89 | UNIT_CLASS_TEST(RestrictionTest, XYGraph_RestrictionF1F3Only) |
nothing calls this directly
no test coverage detected