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

Function UNIT_CLASS_TEST

libs/routing/routing_tests/restriction_test.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26using Algorithm = AStarAlgorithm<Segment, SegmentEdge, RouteWeight>;
27
28UNIT_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
38UNIT_CLASS_TEST(RestrictionTest, CrossGraph_UTurn)
39{

Callers

nothing calls this directly

Calls 15

BuildCrossGraphFunction · 0.85
TestRouteGeometryFunction · 0.85
TestRestrictionsFunction · 0.85
BuildTriangularGraphFunction · 0.85
BuildTwowayCornerGraphFunction · 0.85
BuildTwoSquaresGraphFunction · 0.85
BuildFlagGraphFunction · 0.85
BuildPosterGraphFunction · 0.85
BuildSquaresGraphFunction · 0.85
BuildLineGraphFunction · 0.85
BuildFGraphFunction · 0.85

Tested by

no test coverage detected