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

Generated by: LCOV version 1.14