Branch data Line data Source code
1 : : // ----------------- BEGIN LICENSE BLOCK ---------------------------------
2 : : //
3 : : // Copyright (C) 2019-2021 Intel Corporation
4 : : //
5 : : // SPDX-License-Identifier: LGPL-2.1-only
6 : : //
7 : : // ----------------- END LICENSE BLOCK -----------------------------------
8 : :
9 : : #include <ad/rss/map/test_support/RssWorldModelCreationTest.hpp>
10 : :
11 : : struct RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East
12 : : : public ad::rss::map::test_support::RssWorldModelCreationTestWithRoute
13 : : {
14 : : /*
15 : : * | |
16 : : * | |
17 : : * | |
18 : : * | |___________
19 : : * |
20 : : * |
21 : : * | E2/O2 E3/O3 E4/O4
22 : : * | ____________
23 : : * | E1/O1 |
24 : : * | |
25 : : * | E0/O0 |
26 : : */
27 : : };
28 : :
29 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e0_o0)
30 : : {
31 [ + - + - ]: 3 : performConstellationTest(
32 [ + - ]: 1 : locationSouthIncoming(),
33 [ + - ]: 2 : locationSouthIncoming(),
34 : : std::initializer_list<ExpectedResultTuple>{
35 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(12.2936))});
36 : 1 : }
37 : :
38 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e0_o1)
39 : : {
40 [ + - + - ]: 4 : performConstellationTest(
41 [ + - ]: 1 : locationSouthIncoming(),
42 [ + - ]: 2 : locationSouthEntering(),
43 : : std::initializer_list<ExpectedResultTuple>{
44 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778)),
45 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(12.2936))});
46 : 1 : }
47 : :
48 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e0_o2)
49 : : {
50 [ + - + - ]: 4 : performConstellationTest(
51 [ + - ]: 1 : locationSouthIncoming(),
52 [ + - ]: 2 : locationSouth2East(),
53 : : std::initializer_list<ExpectedResultTuple>{
54 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778)),
55 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778))});
56 : 1 : }
57 : :
58 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e0_o3)
59 : : {
60 [ + - + - ]: 3 : performConstellationTest(
61 [ + - ]: 1 : locationSouthIncoming(),
62 [ + - ]: 2 : locationEastExiting(),
63 : : std::initializer_list<ExpectedResultTuple>{
64 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778))});
65 : 1 : }
66 : :
67 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e0_o4)
68 : : {
69 [ + - + - ]: 3 : performConstellationTest(
70 [ + - ]: 1 : locationSouthIncoming(),
71 [ + - ]: 2 : locationEastOutgoing(),
72 : : std::initializer_list<ExpectedResultTuple>{
73 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 3u, 0u, ::ad::physics::Speed(15.2778))});
74 : 1 : }
75 : :
76 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e1_o0)
77 : : {
78 [ + - + - ]: 4 : performConstellationTest(
79 [ + - ]: 1 : locationSouthEntering(),
80 [ + - ]: 2 : locationSouthIncoming(),
81 : : // other behind, potentially following us
82 : : std::initializer_list<ExpectedResultTuple>{
83 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778)),
84 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(12.2936))});
85 : 1 : }
86 : :
87 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e1_o1)
88 : : {
89 [ + - + - ]: 7 : performConstellationTest(
90 [ + - ]: 1 : locationSouthEntering(),
91 [ + - ]: 2 : locationSouthEntering(),
92 : : // same position
93 : : std::initializer_list<ExpectedResultTuple>{
94 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(12.2936)),
95 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778)),
96 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778)),
97 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778)),
98 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778))});
99 : 1 : }
100 : :
101 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e1_o2)
102 : : {
103 [ + - + - ]: 4 : performConstellationTest(
104 [ + - ]: 1 : locationSouthEntering(),
105 [ + - ]: 2 : locationSouth2East(),
106 : : std::initializer_list<ExpectedResultTuple>{
107 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778)),
108 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778))});
109 : 1 : }
110 : :
111 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e1_o3)
112 : : {
113 [ + - + - ]: 3 : performConstellationTest(
114 [ + - ]: 1 : locationSouthEntering(),
115 [ + - ]: 2 : locationEastExiting(),
116 : : std::initializer_list<ExpectedResultTuple>{
117 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778))});
118 : 1 : }
119 : :
120 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e1_o4)
121 : : {
122 [ + - + - ]: 3 : performConstellationTest(
123 [ + - ]: 1 : locationSouthEntering(),
124 [ + - ]: 2 : locationEastOutgoing(),
125 : : std::initializer_list<ExpectedResultTuple>{
126 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778))});
127 : 1 : }
128 : :
129 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e2_o0)
130 : : {
131 [ + - + - ]: 4 : performConstellationTest(
132 [ + - ]: 1 : locationSouth2East(),
133 [ + - ]: 2 : locationSouthIncoming(),
134 : : // other behind, potentially following us
135 : : std::initializer_list<ExpectedResultTuple>{
136 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778)),
137 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.27786))});
138 : 1 : }
139 : :
140 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e2_o1)
141 : : {
142 [ + - + - ]: 4 : performConstellationTest(
143 [ + - ]: 1 : locationSouth2East(),
144 [ + - ]: 2 : locationSouthEntering(),
145 : : // other behind, potentially following us
146 : : std::initializer_list<ExpectedResultTuple>{
147 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778)),
148 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778))});
149 : 1 : }
150 : :
151 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e2_o2)
152 : : {
153 [ + - + - ]: 4 : performConstellationTest(
154 [ + - ]: 1 : locationSouth2East(),
155 [ + - ]: 2 : locationSouth2East(),
156 : : // same position
157 : : std::initializer_list<ExpectedResultTuple>{
158 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778)),
159 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778))});
160 : 1 : }
161 : :
162 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e2_o3)
163 : : {
164 [ + - + - ]: 3 : performConstellationTest(
165 [ + - ]: 1 : locationSouth2East(),
166 [ + - ]: 2 : locationEastExiting(),
167 : : std::initializer_list<ExpectedResultTuple>{
168 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.2778))});
169 : 1 : }
170 : :
171 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e2_o4)
172 : : {
173 [ + - + - ]: 3 : performConstellationTest(
174 [ + - ]: 1 : locationSouth2East(),
175 [ + - ]: 2 : locationEastOutgoing(),
176 : : std::initializer_list<ExpectedResultTuple>{
177 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.2778))});
178 : 1 : }
179 : :
180 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e3_o0)
181 : : {
182 [ + - + - ]: 3 : performConstellationTest(
183 [ + - ]: 1 : locationEastExiting(),
184 [ + - ]: 2 : locationSouthIncoming(),
185 : : // other behind, potentially following us
186 : : std::initializer_list<ExpectedResultTuple>{
187 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.27786))});
188 : 1 : }
189 : :
190 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e3_o1)
191 : : {
192 [ + - + - ]: 3 : performConstellationTest(
193 [ + - ]: 1 : locationEastExiting(),
194 [ + - ]: 2 : locationSouthEntering(),
195 : : // other behind, potentially following us
196 : : std::initializer_list<ExpectedResultTuple>{
197 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.27786))});
198 : 1 : }
199 : :
200 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e3_o2)
201 : : {
202 [ + - + - ]: 3 : performConstellationTest(
203 [ + - ]: 1 : locationEastExiting(),
204 [ + - ]: 2 : locationSouth2East(),
205 : : // other behind, potentially following us
206 : : std::initializer_list<ExpectedResultTuple>{
207 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.27786))});
208 : 1 : }
209 : :
210 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e3_o3)
211 : : {
212 [ + - + - ]: 7 : performConstellationTest(
213 [ + - ]: 1 : locationEastExiting(),
214 [ + - ]: 2 : locationEastExiting(),
215 : : // same position
216 : : std::initializer_list<ExpectedResultTuple>{
217 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(12.2936)),
218 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.27786)),
219 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(15.277866)),
220 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.27786)),
221 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.27786))});
222 : 1 : }
223 : :
224 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e3_o4)
225 : : {
226 [ + - + - ]: 3 : performConstellationTest(
227 [ + - ]: 1 : locationEastExiting(),
228 [ + - ]: 2 : locationEastOutgoing(),
229 : : std::initializer_list<ExpectedResultTuple>{
230 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(12.2936))});
231 : 1 : }
232 : :
233 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e4_o0)
234 : : {
235 [ + - + - ]: 3 : performConstellationTest(
236 [ + - ]: 1 : locationEastOutgoing(),
237 [ + - ]: 2 : locationSouthIncoming(),
238 : : // other behind, potentially following us
239 : : std::initializer_list<ExpectedResultTuple>{
240 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 3u, 0u, ::ad::physics::Speed(15.27786))});
241 : 1 : }
242 : :
243 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e4_o1)
244 : : {
245 [ + - + - ]: 3 : performConstellationTest(
246 [ + - ]: 1 : locationEastOutgoing(),
247 [ + - ]: 2 : locationSouthEntering(),
248 : : // other behind, potentially following us
249 : : std::initializer_list<ExpectedResultTuple>{
250 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.27786))});
251 : 1 : }
252 : :
253 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e4_o2)
254 : : {
255 [ + - + - ]: 3 : performConstellationTest(
256 [ + - ]: 1 : locationEastOutgoing(),
257 [ + - ]: 2 : locationSouth2East(),
258 : : // other behind, potentially following us
259 : : std::initializer_list<ExpectedResultTuple>{
260 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(15.27786))});
261 : 1 : }
262 : :
263 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e4_o3)
264 : : {
265 [ + - + - ]: 3 : performConstellationTest(
266 [ + - ]: 1 : locationEastOutgoing(),
267 [ + - ]: 2 : locationEastExiting(),
268 : : // other behind, potentially following us
269 : : std::initializer_list<ExpectedResultTuple>{
270 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(12.2936))});
271 : 1 : }
272 : :
273 : 4 : TEST_F(RssWorldModelCreationTestWithRouteEgoSouth2EastOtherSouth2East, e4_o4)
274 : : {
275 [ + - + - ]: 3 : performConstellationTest(
276 [ + - ]: 1 : locationEastOutgoing(),
277 [ + - ]: 2 : locationEastOutgoing(),
278 : : // same position
279 : : std::initializer_list<ExpectedResultTuple>{
280 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(12.2936))});
281 : 1 : }
282 : :
283 : : struct RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East
284 : : : public ad::rss::map::test_support::RssWorldModelCreationTestWithoutRoute
285 : : {
286 : : /*
287 : : * | |
288 : : * | |
289 : : * | |
290 : : * | |___________
291 : : * |
292 : : * |
293 : : * | E2/O2 E3/O3 E4/O4
294 : : * | ____________
295 : : * | E1/O1 |
296 : : * | |
297 : : * | E0/O0 |
298 : : */
299 : : };
300 : :
301 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e0_o0)
302 : : {
303 [ + - + - : 3 : performConstellationTest(locationSouthIncoming(),
+ - ]
304 [ + - ]: 2 : locationSouthIncoming(),
305 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
306 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
307 : 1 : }
308 : :
309 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e0_o1)
310 : : {
311 [ + - + - ]: 4 : performConstellationTest(
312 [ + - ]: 1 : locationSouthIncoming(),
313 [ + - ]: 2 : locationSouthEntering(),
314 : : std::initializer_list<ExpectedResultTuple>{
315 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
316 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
317 : 1 : }
318 : :
319 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e0_o2)
320 : : {
321 [ + - + - ]: 4 : performConstellationTest(
322 [ + - ]: 1 : locationSouthIncoming(),
323 [ + - ]: 2 : locationSouth2East(),
324 : : std::initializer_list<ExpectedResultTuple>{
325 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.)),
326 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
327 : 1 : }
328 : :
329 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e0_o3)
330 : : {
331 [ + - + - : 3 : performConstellationTest(locationSouthIncoming(),
+ - ]
332 [ + - ]: 2 : locationEastExiting(),
333 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
334 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
335 : 1 : }
336 : :
337 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e0_o4)
338 : : {
339 [ + - + - : 3 : performConstellationTest(locationSouthIncoming(),
+ - ]
340 [ + - ]: 2 : locationEastOutgoing(),
341 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
342 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 3u, 0u, ::ad::physics::Speed(100.))});
343 : 1 : }
344 : :
345 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e1_o0)
346 : : {
347 [ + - + - ]: 4 : performConstellationTest(
348 [ + - ]: 1 : locationSouthEntering(),
349 [ + - ]: 2 : locationSouthIncoming(),
350 : : // other behind, potentially following us
351 : : std::initializer_list<ExpectedResultTuple>{
352 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
353 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
354 : 1 : }
355 : :
356 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e1_o1)
357 : : {
358 [ + - + - ]: 7 : performConstellationTest(
359 [ + - ]: 1 : locationSouthEntering(),
360 [ + - ]: 2 : locationSouthEntering(),
361 : : // same position
362 : : std::initializer_list<ExpectedResultTuple>{
363 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
364 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
365 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
366 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.)),
367 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
368 : 1 : }
369 : :
370 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e1_o2)
371 : : {
372 [ + - + - ]: 4 : performConstellationTest(
373 [ + - ]: 1 : locationSouthEntering(),
374 [ + - ]: 2 : locationSouth2East(),
375 : : std::initializer_list<ExpectedResultTuple>{
376 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
377 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
378 : 1 : }
379 : :
380 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e1_o3)
381 : : {
382 [ + - + - : 3 : performConstellationTest(locationSouthEntering(),
+ - ]
383 [ + - ]: 2 : locationEastExiting(),
384 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
385 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
386 : 1 : }
387 : :
388 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e1_o4)
389 : : {
390 [ + - + - : 3 : performConstellationTest(locationSouthEntering(),
+ - ]
391 [ + - ]: 2 : locationEastOutgoing(),
392 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
393 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
394 : 1 : }
395 : :
396 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e2_o0)
397 : : {
398 [ + - + - ]: 4 : performConstellationTest(
399 [ + - ]: 1 : locationSouth2East(),
400 [ + - ]: 2 : locationSouthIncoming(),
401 : : // other behind, potentially following us
402 : : std::initializer_list<ExpectedResultTuple>{
403 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.)),
404 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
405 : 1 : }
406 : :
407 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e2_o1)
408 : : {
409 [ + - + - ]: 4 : performConstellationTest(
410 [ + - ]: 1 : locationSouth2East(),
411 [ + - ]: 2 : locationSouthEntering(),
412 : : // other behind, potentially following us
413 : : std::initializer_list<ExpectedResultTuple>{
414 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
415 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
416 : 1 : }
417 : :
418 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e2_o2)
419 : : {
420 [ + - + - ]: 4 : performConstellationTest(
421 [ + - ]: 1 : locationSouth2East(),
422 [ + - ]: 2 : locationSouth2East(),
423 : : // same position
424 : : std::initializer_list<ExpectedResultTuple>{
425 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
426 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
427 : 1 : }
428 : :
429 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e2_o3)
430 : : {
431 [ + - + - : 3 : performConstellationTest(locationSouth2East(),
+ - ]
432 [ + - ]: 2 : locationEastExiting(),
433 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
434 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
435 : 1 : }
436 : :
437 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e2_o4)
438 : : {
439 [ + - + - : 3 : performConstellationTest(locationSouth2East(),
+ - ]
440 [ + - ]: 2 : locationEastOutgoing(),
441 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
442 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
443 : 1 : }
444 : :
445 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e3_o0)
446 : : {
447 [ + - + - : 3 : performConstellationTest(locationEastExiting(),
+ - ]
448 [ + - ]: 2 : locationSouthIncoming(),
449 : : // other behind, potentially following us
450 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
451 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
452 : 1 : }
453 : :
454 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e3_o1)
455 : : {
456 [ + - + - : 3 : performConstellationTest(locationEastExiting(),
+ - ]
457 [ + - ]: 2 : locationSouthEntering(),
458 : : // other behind, potentially following us
459 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
460 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
461 : 1 : }
462 : :
463 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e3_o2)
464 : : {
465 [ + - + - : 3 : performConstellationTest(locationEastExiting(),
+ - ]
466 [ + - ]: 2 : locationSouth2East(),
467 : : // other behind, potentially following us
468 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
469 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
470 : 1 : }
471 : :
472 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e3_o3)
473 : : {
474 [ + - + - ]: 7 : performConstellationTest(
475 [ + - ]: 1 : locationEastExiting(),
476 [ + - ]: 2 : locationEastExiting(),
477 : : // same position
478 : : std::initializer_list<ExpectedResultTuple>{
479 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
480 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
481 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.)),
482 [ + - ]: 1 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.)),
483 [ + - ]: 2 : std::make_tuple(::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
484 : 1 : }
485 : :
486 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e3_o4)
487 : : {
488 [ + - + - : 3 : performConstellationTest(locationEastExiting(),
+ - ]
489 [ + - ]: 2 : locationEastOutgoing(),
490 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
491 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
492 : 1 : }
493 : :
494 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e4_o0)
495 : : {
496 [ + - + - : 3 : performConstellationTest(locationEastOutgoing(),
+ - ]
497 [ + - ]: 2 : locationSouthIncoming(),
498 : : // other behind, potentially following us
499 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
500 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 3u, 0u, ::ad::physics::Speed(100.))});
501 : 1 : }
502 : :
503 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e4_o1)
504 : : {
505 [ + - + - : 3 : performConstellationTest(locationEastOutgoing(),
+ - ]
506 [ + - ]: 2 : locationSouthEntering(),
507 : : // other behind, potentially following us
508 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
509 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
510 : 1 : }
511 : :
512 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e4_o2)
513 : : {
514 [ + - + - : 3 : performConstellationTest(locationEastOutgoing(),
+ - ]
515 [ + - ]: 2 : locationSouth2East(),
516 : : // other behind, potentially following us
517 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
518 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 2u, 0u, ::ad::physics::Speed(100.))});
519 : 1 : }
520 : :
521 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e4_o3)
522 : : {
523 [ + - + - : 3 : performConstellationTest(locationEastOutgoing(),
+ - ]
524 [ + - ]: 2 : locationEastExiting(),
525 : : // other behind, potentially following us
526 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
527 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
528 : 1 : }
529 : :
530 : 4 : TEST_F(RssWorldModelCreationTestWithoutRouteEgoSouth2EastOtherSouth2East, e4_o4)
531 : : {
532 [ + - + - : 3 : performConstellationTest(locationEastOutgoing(),
+ - ]
533 [ + - ]: 2 : locationEastOutgoing(),
534 : : // same position
535 : 0 : std::initializer_list<ExpectedResultTuple>{std::make_tuple(
536 [ + - ]: 2 : ::ad::rss::world::ConstellationType::SameDirection, 1u, 0u, ::ad::physics::Speed(100.))});
537 : 1 : }
|