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

Function UNIT_TEST

libs/routing/routing_integration_tests/turn_test.cpp:18–29  ·  view source on GitHub ↗

Secondary should be preferred against residential.

Source from the content-addressed store, hash-verified

16
17// Secondary should be preferred against residential.
18UNIT_TEST(StPetersburg_SideRoadPenalty_TurnTest)
19{
20 TRouteResult const routeResult = integration::CalculateRoute(integration::GetVehicleComponents(VehicleType::Car),
21 mercator::FromLatLon(59.85157, 30.28033), {0., 0.},
22 mercator::FromLatLon(59.84268, 30.27589));
23
24 Route const & route = *routeResult.first;
25 RouterResultCode const result = routeResult.second;
26 TEST_EQUAL(result, RouterResultCode::NoError, ());
27
28 integration::TestTurnCount(route, 0 /* expectedTurnCount */);
29}
30
31UNIT_TEST(Russia_Moscow_Lenigradskiy39Uturn_TurnTest)
32{

Callers

nothing calls this directly

Calls 13

TestTurnCountFunction · 0.85
GetNthTurnFunction · 0.85
TestRouteLengthFunction · 0.85
TestTurnsFunction · 0.85
TestNoTurnsFunction · 0.85
TestPointMethod · 0.80
GetTurnsForTestingMethod · 0.80
GetNearestTurnMethod · 0.80
GetNextTurnStreetNameMethod · 0.80
MoveIteratorMethod · 0.80
CalculateRouteFunction · 0.70
FromLatLonFunction · 0.50

Tested by

no test coverage detected