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

Function UNIT_TEST

libs/routing/routing_tests/road_penalty_test.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace routing;
13
14UNIT_TEST(RoadPenalty_Basic)
15{
16 RoadPenalty penalty;
17
18 // Test empty penalty
19 TEST(!penalty.GetPenalty(RoadPoint(1, 0)).has_value(), ());
20 TEST(!penalty.GetPenalty(RoadPoint(2, 1)).has_value(), ());
21}
22
23UNIT_TEST(RoadPenalty_PointPenalties)
24{

Callers

nothing calls this directly

Calls 9

TESTFunction · 0.85
RoadPointClass · 0.85
PenaltyClass · 0.85
has_valueMethod · 0.80
SetPointPenaltiesMethod · 0.80
ToStringFunction · 0.50
FromStringFunction · 0.50
GetPenaltyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected