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

Method GetTurnsForTesting

libs/routing/route.cpp:494–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void Route::GetTurnsForTesting(vector<TurnItem> & turns) const
495{
496 turns.clear();
497 for (auto const & s : m_routeSegments)
498 if (IsNormalTurn(s.GetTurn()))
499 turns.push_back(s.GetTurn());
500}
501
502double Route::GetSegLenMeters(size_t segIdx) const
503{

Callers 6

UNIT_TESTFunction · 0.80
TestTurnCountFunction · 0.80
TestTurnsFunction · 0.80
GetNthTurnFunction · 0.80
UNIT_TESTFunction · 0.80

Calls 3

IsNormalTurnFunction · 0.85
clearMethod · 0.45
push_backMethod · 0.45

Tested by 5

UNIT_TESTFunction · 0.64
TestTurnCountFunction · 0.64
TestTurnsFunction · 0.64
GetNthTurnFunction · 0.64
UNIT_TESTFunction · 0.64