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

Function UNIT_CLASS_TEST

libs/routing/routing_tests/applying_traffic_test.cpp:126–136  ·  view source on GitHub ↗

Route through XX graph without any traffic info.

Source from the content-addressed store, hash-verified

124
125// Route through XX graph without any traffic info.
126UNIT_CLASS_TEST(ApplyingTrafficTest, XXGraph_EmptyTrafficColoring)
127{
128 TEST(!GetTrafficStash()->Has(kTestNumMwmId), ());
129
130 unique_ptr<WorldGraph> graph = BuildXXGraph(GetEstimator());
131 auto const start = MakeFakeEnding(9 /* featureId */, 0 /* segmentIdx */, m2::PointD(2.0, -1.0), *graph);
132 auto const finish = MakeFakeEnding(6, 0, m2::PointD(3.0, 3.0), *graph);
133 auto starter = MakeStarter(start, finish, *graph);
134 vector<m2::PointD> const expectedGeom = {{2 /* x */, -1 /* y */}, {2, 0}, {1, 1}, {2, 2}, {3, 3}};
135 TestRouteGeometry(*starter, Algorithm::Result::OK, expectedGeom);
136}
137
138// Route through XX graph with SpeedGroup::G0 on F3.
139UNIT_CLASS_TEST(ApplyingTrafficTest, XXGraph_G0onF3)

Callers

nothing calls this directly

Calls 6

TESTFunction · 0.85
MakeStarterFunction · 0.85
TestRouteGeometryFunction · 0.85
BuildXXGraphFunction · 0.70
MakeFakeEndingFunction · 0.70
HasMethod · 0.45

Tested by

no test coverage detected