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

Function GetTestGuides

libs/routing/routing_tests/guides_tests.cpp:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26// XX 0
27
28GuidesTracks GetTestGuides()
29{
30 // Two guides. First with 2 tracks, second - with 1 track.
31 GuidesTracks guides;
32 guides[10] = {{{mercator::FromLatLon(48.13999, 11.56873), 5},
33 {mercator::FromLatLon(48.14096, 11.57246), 5},
34 {mercator::FromLatLon(48.14487, 11.57259), 6}},
35 {{mercator::FromLatLon(48.14349, 11.56712), 8},
36 {mercator::FromLatLon(48.14298, 11.56604), 6},
37 {mercator::FromLatLon(48.14223, 11.56362), 6},
38 {mercator::FromLatLon(48.14202, 11.56283), 6}}};
39 guides[11] = {{{mercator::FromLatLon(48.14246, 11.57814), 9},
40 {mercator::FromLatLon(48.14279, 11.57941), 10},
41 {mercator::FromLatLon(48.14311, 11.58063), 10}}};
42 return guides;
43}
44
45UNIT_TEST(Guides_SafeInit)
46{

Callers 1

UNIT_TESTFunction · 0.70

Calls 1

FromLatLonFunction · 0.50

Tested by

no test coverage detected