| 26 | using Algorithm = AStarAlgorithm<Segment, SegmentEdge, RouteWeight>; |
| 27 | |
| 28 | UNIT_CLASS_TEST(RestrictionTest, CrossGraph_NoUTurn) |
| 29 | { |
| 30 | Init(BuildCrossGraph()); |
| 31 | SetStarter(MakeFakeEnding(0 /* featureId */, 0 /* segmentIdx */, m2::PointD(-1, 0), *m_graph), |
| 32 | MakeFakeEnding(7, 0, m2::PointD(1, 2), *m_graph)); |
| 33 | |
| 34 | vector<m2::PointD> const expectedGeom = {{-1.0 /* x */, 0.0 /* y */}, {0.0, 0.0}, {1.0, 0.0}, {1.0, 1.0}, {1.0, 2.0}}; |
| 35 | TestRouteGeometry(*m_starter, Algorithm::Result::OK, expectedGeom); |
| 36 | } |
| 37 | |
| 38 | UNIT_CLASS_TEST(RestrictionTest, CrossGraph_UTurn) |
| 39 | { |
nothing calls this directly
no test coverage detected