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

Function UNIT_TEST

libs/routing/routing_tests/speed_cameras_tests.cpp:28–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26static auto const kErrorMessageOneWay = "Serialize method works only with cameras with one way";
27
28UNIT_TEST(SegmentCoord_LessOperator)
29{
30 {
31 SegmentCoord a(10, 5);
32 SegmentCoord b(11, 0);
33
34 TEST_LESS(a, b, ());
35 }
36
37 {
38 SegmentCoord a(10, 0);
39 SegmentCoord b(11, 5);
40
41 TEST_LESS(a, b, ());
42 }
43
44 {
45 SegmentCoord a(5, 0);
46 SegmentCoord b(11, 5);
47
48 TEST_LESS(a, b, ());
49 }
50
51 {
52 SegmentCoord a(5, 0);
53 SegmentCoord b(0, 5);
54
55 TEST_LESS(b, a, ());
56 }
57
58 {
59 SegmentCoord a(5, 0);
60 SegmentCoord b(5, 5);
61
62 TEST_LESS(a, b, ());
63 }
64
65 {
66 SegmentCoord a(5, 6);
67 SegmentCoord b(5, 5);
68
69 TEST_LESS(b, a, ());
70 }
71
72 {
73 SegmentCoord a(4, 6);
74 SegmentCoord b(5, 6);
75
76 TEST_LESS(a, b, ());
77 }
78}
79
80// Test for serialize/deserialize of speed cameras.
81

Callers

nothing calls this directly

Calls 3

TESTFunction · 0.85
TestSerDesSpeedCameraFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected