LCOV - code coverage report
Current view: top level - tests/intersection - IntersectionPriorityToRightTests.cpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 237 237 100.0 %
Date: 2022-10-04 09:48:07 Functions: 78 78 100.0 %
Branches: 144 288 50.0 %

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

Generated by: LCOV version 1.14