Branch data Line data Source code
1 : : // ----------------- BEGIN LICENSE BLOCK ---------------------------------
2 : : //
3 : : // Copyright (C) 2018-2021 Intel Corporation
4 : : //
5 : : // SPDX-License-Identifier: MIT
6 : : //
7 : : // ----------------- END LICENSE BLOCK -----------------------------------
8 : :
9 : : #include "IntersectionYieldLefthandTests.hpp"
10 : : #include "MapSetup.hpp"
11 : :
12 : : namespace ad {
13 : : namespace map {
14 : :
15 : 12 : void IntersectionYieldLefthandTest::prepareMap() const
16 : : {
17 : 12 : ::map_setup::prepareMapBasicYieldLefthand();
18 : 12 : }
19 : :
20 : 3 : lane::LaneId IntersectionYieldLefthandFromWestTest::getRouteStart() const
21 : : {
22 : 3 : return mFromWest;
23 : : }
24 : :
25 : 3 : intersection::IntersectionType IntersectionYieldLefthandFromWestTest::expectedIntersectionType() const
26 : : {
27 : 3 : return intersection::IntersectionType::Yield;
28 : : }
29 : :
30 : 1 : lane::LaneId IntersectionYieldLefthandWestToNorthTest::getRouteEnd() const
31 : : {
32 : 1 : return mToNorth;
33 : : }
34 : :
35 : 2 : lane::LaneIdSet IntersectionYieldLefthandWestToNorthTest::expectedIncomingLanesWithHigherPriority() const
36 : : {
37 [ + - + - : 6 : return createUnorderedLaneIdSet({getIncomingLanesSouth(), getIncomingLanesNorth()});
+ + - - ]
38 : : }
39 : :
40 : 2 : lane::LaneIdSet IntersectionYieldLefthandWestToNorthTest::expectedIncomingLanesWithLowerPriority() const
41 : : {
42 [ + - + - : 4 : return createUnorderedLaneIdSet({getIncomingLanesEast()});
+ + - - ]
43 : : }
44 : :
45 : 1 : lane::LaneIdSet IntersectionYieldLefthandWestToNorthTest::expectedInternalLanesWithHigherPriority() const
46 : : {
47 : 1 : return createUnorderedLaneIdSet({mNorthToEast.mInternalLanes,
48 : 1 : mNorthToSouth.mInternalLanes,
49 : 1 : mNorthToWest.mInternalLanes,
50 : 1 : mSouthToEast.mInternalLanes,
51 : 1 : mSouthToNorth.mInternalLanes,
52 [ + - + - : 7 : mSouthToWest.mInternalLanes});
+ + - - ]
53 : : }
54 : :
55 : 1 : lane::LaneIdSet IntersectionYieldLefthandWestToNorthTest::expectedCrossingLanes() const
56 : : {
57 : : return createUnorderedLaneIdSet(
58 [ + - + - : 4 : {mEastToNorth.mInternalLanes, mSouthToEast.mInternalLanes, mSouthToNorth.mInternalLanes});
+ + - - ]
59 : : }
60 : :
61 : 2 : TEST_F(IntersectionYieldLefthandWestToNorthTest, basic_checks)
62 : : {
63 : 1 : performBasicChecks();
64 : 1 : }
65 : :
66 : 1 : lane::LaneId IntersectionYieldLefthandWestToEastTest::getRouteEnd() const
67 : : {
68 : 1 : return mToEast;
69 : : }
70 : :
71 : 2 : lane::LaneIdSet IntersectionYieldLefthandWestToEastTest::expectedIncomingLanesWithHigherPriority() const
72 : : {
73 [ + - + - : 6 : return createUnorderedLaneIdSet({getIncomingLanesNorth(), getIncomingLanesSouth()});
+ + - - ]
74 : : }
75 : :
76 : 2 : lane::LaneIdSet IntersectionYieldLefthandWestToEastTest::expectedIncomingLanesWithLowerPriority() const
77 : : {
78 : 2 : return getIncomingLanesEast();
79 : : }
80 : :
81 : 1 : lane::LaneIdSet IntersectionYieldLefthandWestToEastTest::expectedInternalLanesWithHigherPriority() const
82 : : {
83 : 1 : return createUnorderedLaneIdSet({mNorthToEast.mInternalLanes,
84 : 1 : mNorthToSouth.mInternalLanes,
85 : 1 : mNorthToWest.mInternalLanes,
86 : 1 : mSouthToEast.mInternalLanes,
87 : 1 : mSouthToNorth.mInternalLanes,
88 [ + - + - : 7 : mSouthToWest.mInternalLanes});
+ + - - ]
89 : : }
90 : :
91 : 1 : lane::LaneIdSet IntersectionYieldLefthandWestToEastTest::expectedCrossingLanes() const
92 : : {
93 : 1 : return createUnorderedLaneIdSet({mNorthToEast.mInternalLanes,
94 : 1 : mNorthToSouth.mInternalLanes,
95 : 1 : mNorthToWest.mInternalLanes,
96 : 1 : mSouthToEast.mInternalLanes,
97 : 1 : mSouthToNorth.mInternalLanes,
98 [ + - + - : 7 : mEastToNorth.mInternalLanes});
+ + - - ]
99 : : }
100 : :
101 : 2 : TEST_F(IntersectionYieldLefthandWestToEastTest, basic_checks)
102 : : {
103 : 1 : performBasicChecks();
104 : 1 : }
105 : :
106 : 1 : lane::LaneId IntersectionYieldLefthandWestToSouthTest::getRouteEnd() const
107 : : {
108 : 1 : return mToSouth;
109 : : }
110 : :
111 : 2 : lane::LaneIdSet IntersectionYieldLefthandWestToSouthTest::expectedIncomingLanesWithHigherPriority() const
112 : : {
113 [ + - + - : 8 : return createUnorderedLaneIdSet({getIncomingLanesNorth(), getIncomingLanesSouth(), getIncomingLanesEast()});
+ + - - ]
114 : : }
115 : :
116 : 2 : lane::LaneIdSet IntersectionYieldLefthandWestToSouthTest::expectedIncomingLanesWithLowerPriority() const
117 : : {
118 : 2 : return lane::LaneIdSet();
119 : : }
120 : :
121 : 1 : lane::LaneIdSet IntersectionYieldLefthandWestToSouthTest::expectedInternalLanesWithHigherPriority() const
122 : : {
123 : 1 : return createUnorderedLaneIdSet({mNorthToEast.mInternalLanes,
124 : 1 : mNorthToSouth.mInternalLanes,
125 : 1 : mNorthToWest.mInternalLanes,
126 : 1 : mSouthToEast.mInternalLanes,
127 : 1 : mSouthToNorth.mInternalLanes,
128 : 1 : mSouthToWest.mInternalLanes,
129 : 1 : mEastToSouth.mInternalLanes,
130 : 1 : mEastToWest.mInternalLanes,
131 [ + - + - : 10 : mEastToNorth.mInternalLanes});
+ + - - ]
132 : : }
133 : :
134 : 1 : lane::LaneIdSet IntersectionYieldLefthandWestToSouthTest::expectedCrossingLanes() const
135 : : {
136 : 1 : return createUnorderedLaneIdSet({mNorthToEast.mInternalLanes,
137 : 1 : mNorthToWest.mInternalLanes,
138 : 1 : mNorthToSouth.mInternalLanes,
139 : 1 : mSouthToEast.mInternalLanes,
140 : 1 : mSouthToNorth.mInternalLanes,
141 : 1 : mEastToSouth.mInternalLanes,
142 : 1 : mEastToWest.mInternalLanes,
143 [ + - + - : 9 : mEastToNorth.mInternalLanes});
+ + - - ]
144 : : }
145 : :
146 : 2 : TEST_F(IntersectionYieldLefthandWestToSouthTest, basic_checks)
147 : : {
148 : 1 : performBasicChecks();
149 : 1 : }
150 : :
151 : 3 : lane::LaneId IntersectionYieldLefthandFromEastTest::getRouteStart() const
152 : : {
153 : 3 : return mFromEast;
154 : : }
155 : :
156 : 3 : intersection::IntersectionType IntersectionYieldLefthandFromEastTest::expectedIntersectionType() const
157 : : {
158 : 3 : return intersection::IntersectionType::Yield;
159 : : }
160 : :
161 : 1 : lane::LaneId IntersectionYieldLefthandEastToNorthTest::getRouteEnd() const
162 : : {
163 : 1 : return mToNorth;
164 : : }
165 : :
166 : 2 : lane::LaneIdSet IntersectionYieldLefthandEastToNorthTest::expectedIncomingLanesWithHigherPriority() const
167 : : {
168 [ + - + - : 8 : return createUnorderedLaneIdSet({getIncomingLanesNorth(), getIncomingLanesSouth(), getIncomingLanesWest()});
+ + - - ]
169 : : }
170 : :
171 : 2 : lane::LaneIdSet IntersectionYieldLefthandEastToNorthTest::expectedIncomingLanesWithLowerPriority() const
172 : : {
173 : 2 : return lane::LaneIdSet();
174 : : }
175 : :
176 : 1 : lane::LaneIdSet IntersectionYieldLefthandEastToNorthTest::expectedInternalLanesWithHigherPriority() const
177 : : {
178 : 1 : return createUnorderedLaneIdSet({mNorthToEast.mInternalLanes,
179 : 1 : mNorthToSouth.mInternalLanes,
180 : 1 : mNorthToWest.mInternalLanes,
181 : 1 : mSouthToEast.mInternalLanes,
182 : 1 : mSouthToNorth.mInternalLanes,
183 : 1 : mSouthToWest.mInternalLanes,
184 : 1 : mWestToSouth.mInternalLanes,
185 : 1 : mWestToEast.mInternalLanes,
186 [ + - + - : 10 : mWestToNorth.mInternalLanes});
+ + - - ]
187 : : }
188 : :
189 : 1 : lane::LaneIdSet IntersectionYieldLefthandEastToNorthTest::expectedCrossingLanes() const
190 : : {
191 : 1 : return createUnorderedLaneIdSet({mNorthToWest.mInternalLanes,
192 : 1 : mNorthToSouth.mInternalLanes,
193 : 1 : mSouthToWest.mInternalLanes,
194 : 1 : mSouthToEast.mInternalLanes,
195 : 1 : mSouthToNorth.mInternalLanes,
196 : 1 : mWestToSouth.mInternalLanes,
197 : 1 : mWestToEast.mInternalLanes,
198 [ + - + - : 9 : mWestToNorth.mInternalLanes});
+ + - - ]
199 : : }
200 : :
201 : 2 : TEST_F(IntersectionYieldLefthandEastToNorthTest, basic_checks)
202 : : {
203 : 1 : performBasicChecks();
204 : 1 : }
205 : :
206 : 1 : lane::LaneId IntersectionYieldLefthandEastToWestTest::getRouteEnd() const
207 : : {
208 : 1 : return mToWest;
209 : : }
210 : :
211 : 2 : lane::LaneIdSet IntersectionYieldLefthandEastToWestTest::expectedIncomingLanesWithHigherPriority() const
212 : : {
213 [ + - + - : 6 : return createUnorderedLaneIdSet({getIncomingLanesNorth(), getIncomingLanesSouth()});
+ + - - ]
214 : : }
215 : :
216 : 2 : lane::LaneIdSet IntersectionYieldLefthandEastToWestTest::expectedIncomingLanesWithLowerPriority() const
217 : : {
218 : 2 : return getIncomingLanesWest();
219 : : }
220 : :
221 : 1 : lane::LaneIdSet IntersectionYieldLefthandEastToWestTest::expectedInternalLanesWithHigherPriority() const
222 : : {
223 : 1 : return createUnorderedLaneIdSet({mNorthToEast.mInternalLanes,
224 : 1 : mNorthToSouth.mInternalLanes,
225 : 1 : mNorthToWest.mInternalLanes,
226 : 1 : mSouthToEast.mInternalLanes,
227 : 1 : mSouthToNorth.mInternalLanes,
228 [ + - + - : 7 : mSouthToWest.mInternalLanes});
+ + - - ]
229 : : }
230 : :
231 : 1 : lane::LaneIdSet IntersectionYieldLefthandEastToWestTest::expectedCrossingLanes() const
232 : : {
233 : 1 : return createUnorderedLaneIdSet({mWestToSouth.mInternalLanes,
234 : 1 : mNorthToSouth.mInternalLanes,
235 : 1 : mNorthToWest.mInternalLanes,
236 : 1 : mSouthToNorth.mInternalLanes,
237 : 1 : mSouthToWest.mInternalLanes,
238 [ + - + - : 7 : mSouthToEast.mInternalLanes});
+ + - - ]
239 : : }
240 : :
241 : 2 : TEST_F(IntersectionYieldLefthandEastToWestTest, basic_checks)
242 : : {
243 : 1 : performBasicChecks();
244 : 1 : }
245 : :
246 : 1 : lane::LaneId IntersectionYieldLefthandEastToSouthTest::getRouteEnd() const
247 : : {
248 : 1 : return mToSouth;
249 : : }
250 : :
251 : 2 : lane::LaneIdSet IntersectionYieldLefthandEastToSouthTest::expectedIncomingLanesWithHigherPriority() const
252 : : {
253 [ + - + - : 6 : return createUnorderedLaneIdSet({getIncomingLanesSouth(), getIncomingLanesNorth()});
+ + - - ]
254 : : }
255 : :
256 : 2 : lane::LaneIdSet IntersectionYieldLefthandEastToSouthTest::expectedIncomingLanesWithLowerPriority() const
257 : : {
258 [ + - + - : 4 : return createUnorderedLaneIdSet({getIncomingLanesWest()});
+ + - - ]
259 : : }
260 : :
261 : 1 : lane::LaneIdSet IntersectionYieldLefthandEastToSouthTest::expectedInternalLanesWithHigherPriority() const
262 : : {
263 : 1 : return createUnorderedLaneIdSet({mNorthToEast.mInternalLanes,
264 : 1 : mNorthToSouth.mInternalLanes,
265 : 1 : mNorthToWest.mInternalLanes,
266 : 1 : mSouthToEast.mInternalLanes,
267 : 1 : mSouthToNorth.mInternalLanes,
268 [ + - + - : 7 : mSouthToWest.mInternalLanes});
+ + - - ]
269 : : }
270 : :
271 : 1 : lane::LaneIdSet IntersectionYieldLefthandEastToSouthTest::expectedCrossingLanes() const
272 : : {
273 : : return createUnorderedLaneIdSet(
274 [ + - + - : 4 : {mWestToSouth.mInternalLanes, mNorthToWest.mInternalLanes, mNorthToSouth.mInternalLanes});
+ + - - ]
275 : : }
276 : :
277 : 2 : TEST_F(IntersectionYieldLefthandEastToSouthTest, basic_checks)
278 : : {
279 : 1 : performBasicChecks();
280 : 1 : }
281 : :
282 : 3 : lane::LaneId IntersectionYieldLefthandFromNorthTest::getRouteStart() const
283 : : {
284 : 3 : return mFromNorth;
285 : : }
286 : :
287 : 3 : intersection::IntersectionType IntersectionYieldLefthandFromNorthTest::expectedIntersectionType() const
288 : : {
289 : 3 : return intersection::IntersectionType::HasWay;
290 : : }
291 : :
292 : 1 : lane::LaneId IntersectionYieldLefthandNorthToEastTest::getRouteEnd() const
293 : : {
294 : 1 : return mToEast;
295 : : }
296 : :
297 : 2 : lane::LaneIdSet IntersectionYieldLefthandNorthToEastTest::expectedIncomingLanesWithHigherPriority() const
298 : : {
299 : 2 : return lane::LaneIdSet();
300 : : }
301 : :
302 : 2 : lane::LaneIdSet IntersectionYieldLefthandNorthToEastTest::expectedIncomingLanesWithLowerPriority() const
303 : : {
304 [ + - + - : 8 : return createUnorderedLaneIdSet({getIncomingLanesWest(), getIncomingLanesEast(), getIncomingLanesSouth()});
+ + - - ]
305 : : }
306 : :
307 : 1 : lane::LaneIdSet IntersectionYieldLefthandNorthToEastTest::expectedInternalLanesWithHigherPriority() const
308 : : {
309 : 1 : return lane::LaneIdSet();
310 : : }
311 : :
312 : 1 : lane::LaneIdSet IntersectionYieldLefthandNorthToEastTest::expectedCrossingLanes() const
313 : : {
314 : : return createUnorderedLaneIdSet(
315 [ + - + - : 4 : {mWestToSouth.mInternalLanes, mWestToEast.mInternalLanes, mSouthToEast.mInternalLanes});
+ + - - ]
316 : : }
317 : :
318 : 2 : TEST_F(IntersectionYieldLefthandNorthToEastTest, basic_checks)
319 : : {
320 : 1 : performBasicChecks();
321 : 1 : }
322 : :
323 : 1 : lane::LaneId IntersectionYieldLefthandNorthToWestTest::getRouteEnd() const
324 : : {
325 : 1 : return mToWest;
326 : : }
327 : :
328 : 2 : lane::LaneIdSet IntersectionYieldLefthandNorthToWestTest::expectedIncomingLanesWithHigherPriority() const
329 : : {
330 : 2 : return getIncomingLanesSouth();
331 : : }
332 : :
333 : 2 : lane::LaneIdSet IntersectionYieldLefthandNorthToWestTest::expectedIncomingLanesWithLowerPriority() const
334 : : {
335 [ + - + - : 6 : return createUnorderedLaneIdSet({getIncomingLanesWest(), getIncomingLanesEast()});
+ + - - ]
336 : : }
337 : :
338 : 1 : lane::LaneIdSet IntersectionYieldLefthandNorthToWestTest::expectedInternalLanesWithHigherPriority() const
339 : : {
340 : : return createUnorderedLaneIdSet(
341 [ + - + - : 4 : {mSouthToWest.mInternalLanes, mSouthToEast.mInternalLanes, mSouthToNorth.mInternalLanes});
+ + - - ]
342 : : }
343 : :
344 : 1 : lane::LaneIdSet IntersectionYieldLefthandNorthToWestTest::expectedCrossingLanes() const
345 : : {
346 : 1 : return createUnorderedLaneIdSet({mWestToSouth.mInternalLanes,
347 : 1 : mWestToEast.mInternalLanes,
348 : 1 : mEastToSouth.mInternalLanes,
349 : 1 : mEastToWest.mInternalLanes,
350 : 1 : mEastToNorth.mInternalLanes,
351 : 1 : mSouthToWest.mInternalLanes,
352 : 1 : mSouthToEast.mInternalLanes,
353 [ + - + - : 9 : mSouthToNorth.mInternalLanes});
+ + - - ]
354 : : }
355 : :
356 : 2 : TEST_F(IntersectionYieldLefthandNorthToWestTest, basic_checks)
357 : : {
358 : 1 : performBasicChecks();
359 : 1 : }
360 : :
361 : 1 : lane::LaneId IntersectionYieldLefthandNorthToSouthTest::getRouteEnd() const
362 : : {
363 : 1 : return mToSouth;
364 : : }
365 : :
366 : 2 : lane::LaneIdSet IntersectionYieldLefthandNorthToSouthTest::expectedIncomingLanesWithHigherPriority() const
367 : : {
368 : 2 : return lane::LaneIdSet();
369 : : }
370 : :
371 : 2 : lane::LaneIdSet IntersectionYieldLefthandNorthToSouthTest::expectedIncomingLanesWithLowerPriority() const
372 : : {
373 [ + - + - : 8 : return createUnorderedLaneIdSet({getIncomingLanesWest(), getIncomingLanesEast(), getIncomingLanesSouth()});
+ + - - ]
374 : : }
375 : :
376 : 1 : lane::LaneIdSet IntersectionYieldLefthandNorthToSouthTest::expectedInternalLanesWithHigherPriority() const
377 : : {
378 : 1 : return lane::LaneIdSet();
379 : : }
380 : :
381 : 1 : lane::LaneIdSet IntersectionYieldLefthandNorthToSouthTest::expectedCrossingLanes() const
382 : : {
383 : 1 : return createUnorderedLaneIdSet({mSouthToEast.mInternalLanes,
384 : 1 : mWestToSouth.mInternalLanes,
385 : 1 : mWestToEast.mInternalLanes,
386 : 1 : mEastToNorth.mInternalLanes,
387 : 1 : mEastToSouth.mInternalLanes,
388 [ + - + - : 7 : mEastToWest.mInternalLanes});
+ + - - ]
389 : : }
390 : :
391 : 2 : TEST_F(IntersectionYieldLefthandNorthToSouthTest, basic_checks)
392 : : {
393 : 1 : performBasicChecks();
394 : 1 : }
395 : :
396 : 3 : lane::LaneId IntersectionYieldLefthandFromSouthTest::getRouteStart() const
397 : : {
398 : 3 : return mFromSouth;
399 : : }
400 : :
401 : 3 : intersection::IntersectionType IntersectionYieldLefthandFromSouthTest::expectedIntersectionType() const
402 : : {
403 : 3 : return intersection::IntersectionType::HasWay;
404 : : }
405 : :
406 : 1 : lane::LaneId IntersectionYieldLefthandSouthToEastTest::getRouteEnd() const
407 : : {
408 : 1 : return mToEast;
409 : : }
410 : :
411 : 2 : lane::LaneIdSet IntersectionYieldLefthandSouthToEastTest::expectedIncomingLanesWithHigherPriority() const
412 : : {
413 : 2 : return getIncomingLanesNorth();
414 : : }
415 : :
416 : 2 : lane::LaneIdSet IntersectionYieldLefthandSouthToEastTest::expectedIncomingLanesWithLowerPriority() const
417 : : {
418 [ + - + - : 6 : return createUnorderedLaneIdSet({getIncomingLanesWest(), getIncomingLanesEast()});
+ + - - ]
419 : : }
420 : :
421 : 1 : lane::LaneIdSet IntersectionYieldLefthandSouthToEastTest::expectedInternalLanesWithHigherPriority() const
422 : : {
423 : : return createUnorderedLaneIdSet(
424 [ + - + - : 4 : {mNorthToWest.mInternalLanes, mNorthToEast.mInternalLanes, mNorthToSouth.mInternalLanes});
+ + - - ]
425 : : }
426 : :
427 : 1 : lane::LaneIdSet IntersectionYieldLefthandSouthToEastTest::expectedCrossingLanes() const
428 : : {
429 : 1 : return createUnorderedLaneIdSet({mWestToNorth.mInternalLanes,
430 : 1 : mWestToSouth.mInternalLanes,
431 : 1 : mWestToEast.mInternalLanes,
432 : 1 : mEastToNorth.mInternalLanes,
433 : 1 : mEastToWest.mInternalLanes,
434 : 1 : mNorthToWest.mInternalLanes,
435 : 1 : mNorthToEast.mInternalLanes,
436 [ + - + - : 9 : mNorthToSouth.mInternalLanes});
+ + - - ]
437 : : }
438 : :
439 : 2 : TEST_F(IntersectionYieldLefthandSouthToEastTest, basic_checks)
440 : : {
441 : 1 : performBasicChecks();
442 : 1 : }
443 : :
444 : 1 : lane::LaneId IntersectionYieldLefthandSouthToWestTest::getRouteEnd() const
445 : : {
446 : 1 : return mToWest;
447 : : }
448 : :
449 : 2 : lane::LaneIdSet IntersectionYieldLefthandSouthToWestTest::expectedIncomingLanesWithHigherPriority() const
450 : : {
451 : 2 : return lane::LaneIdSet();
452 : : }
453 : :
454 : 2 : lane::LaneIdSet IntersectionYieldLefthandSouthToWestTest::expectedIncomingLanesWithLowerPriority() const
455 : : {
456 [ + - + - : 8 : return createUnorderedLaneIdSet({getIncomingLanesWest(), getIncomingLanesEast(), getIncomingLanesNorth()});
+ + - - ]
457 : : }
458 : :
459 : 1 : lane::LaneIdSet IntersectionYieldLefthandSouthToWestTest::expectedInternalLanesWithHigherPriority() const
460 : : {
461 : 1 : return lane::LaneIdSet();
462 : : }
463 : :
464 : 1 : lane::LaneIdSet IntersectionYieldLefthandSouthToWestTest::expectedCrossingLanes() const
465 : : {
466 : : return createUnorderedLaneIdSet(
467 [ + - + - : 4 : {mNorthToWest.mInternalLanes, mEastToWest.mInternalLanes, mEastToNorth.mInternalLanes});
+ + - - ]
468 : : }
469 : :
470 : 2 : TEST_F(IntersectionYieldLefthandSouthToWestTest, basic_checks)
471 : : {
472 : 1 : performBasicChecks();
473 : 1 : }
474 : :
475 : 1 : lane::LaneId IntersectionYieldLefthandSouthToNorthTest::getRouteEnd() const
476 : : {
477 : 1 : return mToNorth;
478 : : }
479 : :
480 : 2 : lane::LaneIdSet IntersectionYieldLefthandSouthToNorthTest::expectedIncomingLanesWithHigherPriority() const
481 : : {
482 : 2 : return lane::LaneIdSet();
483 : : }
484 : :
485 : 2 : lane::LaneIdSet IntersectionYieldLefthandSouthToNorthTest::expectedIncomingLanesWithLowerPriority() const
486 : : {
487 [ + - + - : 8 : return createUnorderedLaneIdSet({getIncomingLanesWest(), getIncomingLanesEast(), getIncomingLanesNorth()});
+ + - - ]
488 : : }
489 : :
490 : 1 : lane::LaneIdSet IntersectionYieldLefthandSouthToNorthTest::expectedInternalLanesWithHigherPriority() const
491 : : {
492 : 1 : return lane::LaneIdSet();
493 : : }
494 : :
495 : 1 : lane::LaneIdSet IntersectionYieldLefthandSouthToNorthTest::expectedCrossingLanes() const
496 : : {
497 : 1 : return createUnorderedLaneIdSet({mNorthToWest.mInternalLanes,
498 : 1 : mWestToNorth.mInternalLanes,
499 : 1 : mWestToEast.mInternalLanes,
500 : 1 : mEastToNorth.mInternalLanes,
501 : 1 : mWestToSouth.mInternalLanes,
502 [ + - + - : 7 : mEastToWest.mInternalLanes});
+ + - - ]
503 : : }
504 : :
505 : 2 : TEST_F(IntersectionYieldLefthandSouthToNorthTest, basic_checks)
506 : : {
507 : 1 : performBasicChecks();
508 : 1 : }
509 : :
510 : : } // namespace map
511 : : } // namespace ad
|