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

Function TestRestrictions

libs/routing/routing_tests/index_graph_tools.cpp:540–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540void TestRestrictions(vector<m2::PointD> const & expectedRouteGeom, AlgorithmForWorldGraph::Result expectedRouteResult,
541 FakeEnding const & start, FakeEnding const & finish, RestrictionVec && restrictions,
542 RestrictionTest & restrictionTest)
543{
544 restrictionTest.SetRestrictions(std::move(restrictions));
545 restrictionTest.SetStarter(start, finish);
546
547 TestRouteGeometry(*restrictionTest.m_starter, expectedRouteResult, expectedRouteGeom);
548}
549
550void TestRestrictions(vector<m2::PointD> const & expectedRouteGeom, AlgorithmForWorldGraph::Result expectedRouteResult,
551 FakeEnding const & start, FakeEnding const & finish, RestrictionVec && restrictions,

Callers 2

UNIT_CLASS_TESTFunction · 0.85
UNIT_CLASS_TESTFunction · 0.85

Calls 10

TestRouteGeometryFunction · 0.85
TESTFunction · 0.85
SetStarterMethod · 0.80
CalculateRouteFunction · 0.70
FromLatLonFunction · 0.50
AlmostEqualAbsFunction · 0.50
SetRestrictionsMethod · 0.45
SetUTurnRestrictionsMethod · 0.45
GetPointMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected