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

Function UNIT_TEST

libs/routing/routing_tests/route_tests.cpp:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73UNIT_TEST(AddAbsentCountryToRouteTest)
74{
75 Route route("TestRouter", 0 /* route id */);
76 route.AddAbsentCountry("A");
77 route.AddAbsentCountry("A");
78 route.AddAbsentCountry("B");
79 route.AddAbsentCountry("C");
80 route.AddAbsentCountry("B");
81 set<string> const & absent = route.GetAbsentCountries();
82 TEST(absent.find("A") != absent.end(), ());
83 TEST(absent.find("B") != absent.end(), ());
84 TEST(absent.find("C") != absent.end(), ());
85}
86
87UNIT_TEST(FinshRouteOnSomeDistanceToTheFinishPointTest)
88{

Callers

nothing calls this directly

Calls 15

TESTFunction · 0.85
GetRoutingSettingsFunction · 0.85
GetSegmentsFunction · 0.85
RouteSegmentsFromFunction · 0.85
FillSegmentInfoFunction · 0.85
SubrouteAttrsClass · 0.85
GetGpsFunction · 0.85
GetTestRouteSegmentsFunction · 0.85
AddAbsentCountryMethod · 0.80
SetRouteSegmentsMethod · 0.80
SetSubroteAttrsMethod · 0.80
frontMethod · 0.80

Tested by

no test coverage detected