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

Function CheckSpeed

libs/routing_common/routing_common_tests/vehicle_model_test.cpp:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void CheckSpeed(initializer_list<uint32_t> const & types, InOutCitySpeedKMpH const & expectedSpeed)
114{
115 SpeedParams const inCity(true /* forward */, true /* in city */, Maxspeed());
116 CheckSpeedWithParams(types, inCity, expectedSpeed.m_inCity);
117 SpeedParams const outCity(true /* forward */, false /* in city */, Maxspeed());
118 CheckSpeedWithParams(types, outCity, expectedSpeed.m_outCity);
119}
120
121void CheckOneWay(initializer_list<uint32_t> const & types, bool expectedValue)
122{

Callers 1

UNIT_CLASS_TESTFunction · 0.85

Calls 2

MaxspeedClass · 0.85
CheckSpeedWithParamsFunction · 0.85

Tested by

no test coverage detected