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

Function GetNthTurn

libs/routing/routing_integration_tests/routing_test_tools.cpp:281–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281TestTurn GetNthTurn(routing::Route const & route, uint32_t turnNumber)
282{
283 vector<turns::TurnItem> turns;
284 route.GetTurnsForTesting(turns);
285 if (turnNumber >= turns.size())
286 {
287 ASSERT(false, ());
288 return TestTurn();
289 }
290
291 TurnItem const & turn = turns[turnNumber];
292 return TestTurn(route.GetPoly().GetPoint(turn.m_index), turn.m_turn, turn.m_exitNum);
293}
294
295bool IsSubwayExists(Route const & route)
296{

Callers 2

UNIT_TESTFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 5

ASSERTFunction · 0.85
TestTurnClass · 0.85
GetTurnsForTestingMethod · 0.80
sizeMethod · 0.45
GetPointMethod · 0.45

Tested by

no test coverage detected