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

Generated by: LCOV version 1.14