LCOV - code coverage report
Current view: top level - tests - RssSceneCreationTestEgoSouth2EastOtherSouth2East.cpp (source / functions) Hit Total Coverage
Test: ad_rss_map_integration Lines: 250 300 83.3 %
Date: 2024-04-16 14:13:14 Functions: 100 100 100.0 %
Branches: 300 600 50.0 %

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

Generated by: LCOV version 1.14