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

Function UNIT_TEST

libs/routing/routing_tests/astar_router_test.cpp:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54UNIT_TEST(AStarRouter_Graph2_Simple1)
55{
56 geometry::PointWithAltitude const startPos = geometry::MakePointWithAltitudeForTesting(m2::PointD(0, 0));
57 geometry::PointWithAltitude const finalPos = geometry::MakePointWithAltitudeForTesting(m2::PointD(80, 55));
58
59 vector<geometry::PointWithAltitude> const expected = {geometry::MakePointWithAltitudeForTesting(m2::PointD(0, 0)),
60 geometry::MakePointWithAltitudeForTesting(m2::PointD(5, 10)),
61 geometry::MakePointWithAltitudeForTesting(m2::PointD(5, 40)),
62 geometry::MakePointWithAltitudeForTesting(m2::PointD(18, 55)),
63 geometry::MakePointWithAltitudeForTesting(m2::PointD(39, 55)),
64 geometry::MakePointWithAltitudeForTesting(m2::PointD(80, 55))};
65
66 TestAStarRouterMock(startPos, finalPos, expected);
67}
68
69UNIT_TEST(AStarRouter_Graph2_Simple2)
70{

Callers

nothing calls this directly

Calls 11

TestAStarRouterMockFunction · 0.85
AddRoadFunction · 0.85
TESTFunction · 0.85
GetMaxSpeedKMpHMethod · 0.80
LoadFunction · 0.50
RoadInfoClass · 0.50
AlmostEqualAbsFunction · 0.50
CalculateRouteMethod · 0.45
AddRoadMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected