LCOV - code coverage report
Current view: top level - tests/generated/ad/rss/state - RssStateVectorValidInputRangeTests.cpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 402 402 100.0 %
Date: 2024-12-17 12:06:18 Functions: 12 12 100.0 %
Branches: 35 118 29.7 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
       3                 :            :  *
       4                 :            :  * Copyright (C) 2018-2021 Intel Corporation
       5                 :            :  *
       6                 :            :  * SPDX-License-Identifier: LGPL-2.1-only
       7                 :            :  *
       8                 :            :  * ----------------- END LICENSE BLOCK -----------------------------------
       9                 :            :  */
      10                 :            : 
      11                 :            : /*
      12                 :            :  * Generated file
      13                 :            :  */
      14                 :            : 
      15                 :            : #include <gtest/gtest.h>
      16                 :            : 
      17                 :            : #include <limits>
      18                 :            : 
      19                 :            : #include "ad/rss/state/RssStateVectorValidInputRange.hpp"
      20                 :            : 
      21                 :          2 : TEST(RssStateVectorValidInputRangeTests, testValidInputRangeValidInputRangeMin)
      22                 :            : {
      23                 :          1 :   ::ad::rss::state::RssStateVector value;
      24   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      25                 :            : }
      26                 :            : 
      27                 :          2 : TEST(RssStateVectorValidInputRangeTests, testValidInputRangeValidInputRangeMax)
      28                 :            : {
      29                 :          1 :   ::ad::rss::state::RssStateVector value;
      30                 :          1 :   ::ad::rss::state::RssState element;
      31                 :          1 :   ::ad::rss::world::ObjectId elementObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
      32                 :          1 :   element.objectId = elementObjectId;
      33                 :          1 :   ::ad::rss::situation::SituationId elementSituationId(
      34                 :            :     std::numeric_limits<::ad::rss::situation::SituationId>::lowest());
      35                 :          1 :   element.situationId = elementSituationId;
      36                 :          1 :   ::ad::rss::state::LongitudinalRssState elementLongitudinalState;
      37                 :          1 :   bool elementLongitudinalStateIsSafe{true};
      38                 :          1 :   elementLongitudinalState.isSafe = elementLongitudinalStateIsSafe;
      39                 :          1 :   ::ad::rss::state::LongitudinalResponse elementLongitudinalStateResponse(::ad::rss::state::LongitudinalResponse::None);
      40                 :          1 :   elementLongitudinalState.response = elementLongitudinalStateResponse;
      41                 :          1 :   ::ad::rss::world::LongitudinalRssAccelerationValues elementLongitudinalStateAlphaLon;
      42                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonAccelMax(-1e2);
      43                 :          1 :   elementLongitudinalStateAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
      44                 :          1 :   elementLongitudinalStateAlphaLon.accelMax = elementLongitudinalStateAlphaLonAccelMax;
      45                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMax(-1e2);
      46                 :          1 :   elementLongitudinalStateAlphaLon.brakeMax = elementLongitudinalStateAlphaLonBrakeMax;
      47                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMin(-1e2);
      48                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLonBrakeMin;
      49                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMinCorrect(-1e2);
      50                 :          1 :   elementLongitudinalStateAlphaLon.brakeMinCorrect = elementLongitudinalStateAlphaLonBrakeMinCorrect;
      51                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLon.brakeMax;
      52                 :          1 :   elementLongitudinalStateAlphaLon.brakeMinCorrect = elementLongitudinalStateAlphaLon.brakeMin;
      53                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLon.brakeMinCorrect;
      54                 :          1 :   elementLongitudinalStateAlphaLon.brakeMax = elementLongitudinalStateAlphaLon.brakeMin;
      55                 :          1 :   elementLongitudinalState.alphaLon = elementLongitudinalStateAlphaLon;
      56                 :          1 :   ::ad::rss::state::RssStateInformation elementLongitudinalStateRssStateInformation;
      57                 :          1 :   ::ad::physics::Distance elementLongitudinalStateRssStateInformationSafeDistance(-1e9);
      58                 :          1 :   elementLongitudinalStateRssStateInformation.safeDistance = elementLongitudinalStateRssStateInformationSafeDistance;
      59                 :          1 :   ::ad::physics::Distance elementLongitudinalStateRssStateInformationCurrentDistance(-1e9);
      60                 :            :   elementLongitudinalStateRssStateInformation.currentDistance
      61                 :          1 :     = elementLongitudinalStateRssStateInformationCurrentDistance;
      62                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLongitudinalStateRssStateInformationEvaluator(
      63                 :            :     ::ad::rss::state::RssStateEvaluator::None);
      64                 :          1 :   elementLongitudinalStateRssStateInformation.evaluator = elementLongitudinalStateRssStateInformationEvaluator;
      65                 :          1 :   elementLongitudinalState.rssStateInformation = elementLongitudinalStateRssStateInformation;
      66                 :          1 :   element.longitudinalState = elementLongitudinalState;
      67                 :          1 :   ::ad::rss::state::LateralRssState elementLateralStateRight;
      68                 :          1 :   bool elementLateralStateRightIsSafe{true};
      69                 :          1 :   elementLateralStateRight.isSafe = elementLateralStateRightIsSafe;
      70                 :          1 :   ::ad::rss::state::LateralResponse elementLateralStateRightResponse(::ad::rss::state::LateralResponse::None);
      71                 :          1 :   elementLateralStateRight.response = elementLateralStateRightResponse;
      72                 :          1 :   ::ad::rss::world::LateralRssAccelerationValues elementLateralStateRightAlphaLat;
      73                 :          1 :   ::ad::physics::Acceleration elementLateralStateRightAlphaLatAccelMax(-1e2);
      74                 :          1 :   elementLateralStateRightAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
      75                 :          1 :   elementLateralStateRightAlphaLat.accelMax = elementLateralStateRightAlphaLatAccelMax;
      76                 :          1 :   ::ad::physics::Acceleration elementLateralStateRightAlphaLatBrakeMin(-1e2);
      77                 :          1 :   elementLateralStateRightAlphaLat.brakeMin = elementLateralStateRightAlphaLatBrakeMin;
      78                 :          1 :   elementLateralStateRight.alphaLat = elementLateralStateRightAlphaLat;
      79                 :          1 :   ::ad::rss::state::RssStateInformation elementLateralStateRightRssStateInformation;
      80                 :          1 :   ::ad::physics::Distance elementLateralStateRightRssStateInformationSafeDistance(-1e9);
      81                 :          1 :   elementLateralStateRightRssStateInformation.safeDistance = elementLateralStateRightRssStateInformationSafeDistance;
      82                 :          1 :   ::ad::physics::Distance elementLateralStateRightRssStateInformationCurrentDistance(-1e9);
      83                 :            :   elementLateralStateRightRssStateInformation.currentDistance
      84                 :          1 :     = elementLateralStateRightRssStateInformationCurrentDistance;
      85                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLateralStateRightRssStateInformationEvaluator(
      86                 :            :     ::ad::rss::state::RssStateEvaluator::None);
      87                 :          1 :   elementLateralStateRightRssStateInformation.evaluator = elementLateralStateRightRssStateInformationEvaluator;
      88                 :          1 :   elementLateralStateRight.rssStateInformation = elementLateralStateRightRssStateInformation;
      89                 :          1 :   element.lateralStateRight = elementLateralStateRight;
      90                 :          1 :   ::ad::rss::state::LateralRssState elementLateralStateLeft;
      91                 :          1 :   bool elementLateralStateLeftIsSafe{true};
      92                 :          1 :   elementLateralStateLeft.isSafe = elementLateralStateLeftIsSafe;
      93                 :          1 :   ::ad::rss::state::LateralResponse elementLateralStateLeftResponse(::ad::rss::state::LateralResponse::None);
      94                 :          1 :   elementLateralStateLeft.response = elementLateralStateLeftResponse;
      95                 :          1 :   ::ad::rss::world::LateralRssAccelerationValues elementLateralStateLeftAlphaLat;
      96                 :          1 :   ::ad::physics::Acceleration elementLateralStateLeftAlphaLatAccelMax(-1e2);
      97                 :          1 :   elementLateralStateLeftAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
      98                 :          1 :   elementLateralStateLeftAlphaLat.accelMax = elementLateralStateLeftAlphaLatAccelMax;
      99                 :          1 :   ::ad::physics::Acceleration elementLateralStateLeftAlphaLatBrakeMin(-1e2);
     100                 :          1 :   elementLateralStateLeftAlphaLat.brakeMin = elementLateralStateLeftAlphaLatBrakeMin;
     101                 :          1 :   elementLateralStateLeft.alphaLat = elementLateralStateLeftAlphaLat;
     102                 :          1 :   ::ad::rss::state::RssStateInformation elementLateralStateLeftRssStateInformation;
     103                 :          1 :   ::ad::physics::Distance elementLateralStateLeftRssStateInformationSafeDistance(-1e9);
     104                 :          1 :   elementLateralStateLeftRssStateInformation.safeDistance = elementLateralStateLeftRssStateInformationSafeDistance;
     105                 :          1 :   ::ad::physics::Distance elementLateralStateLeftRssStateInformationCurrentDistance(-1e9);
     106                 :            :   elementLateralStateLeftRssStateInformation.currentDistance
     107                 :          1 :     = elementLateralStateLeftRssStateInformationCurrentDistance;
     108                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLateralStateLeftRssStateInformationEvaluator(
     109                 :            :     ::ad::rss::state::RssStateEvaluator::None);
     110                 :          1 :   elementLateralStateLeftRssStateInformation.evaluator = elementLateralStateLeftRssStateInformationEvaluator;
     111                 :          1 :   elementLateralStateLeft.rssStateInformation = elementLateralStateLeftRssStateInformation;
     112                 :          1 :   element.lateralStateLeft = elementLateralStateLeft;
     113                 :          1 :   ::ad::rss::state::UnstructuredSceneRssState elementUnstructuredSceneState;
     114                 :          1 :   bool elementUnstructuredSceneStateIsSafe{true};
     115                 :          1 :   elementUnstructuredSceneState.isSafe = elementUnstructuredSceneStateIsSafe;
     116                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse elementUnstructuredSceneStateResponse(
     117                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     118                 :          1 :   elementUnstructuredSceneState.response = elementUnstructuredSceneStateResponse;
     119                 :          1 :   ::ad::rss::state::HeadingRange elementUnstructuredSceneStateHeadingRange;
     120                 :          1 :   ::ad::physics::Angle elementUnstructuredSceneStateHeadingRangeBegin(-6.283185308);
     121                 :          1 :   elementUnstructuredSceneStateHeadingRange.begin = elementUnstructuredSceneStateHeadingRangeBegin;
     122                 :          1 :   ::ad::physics::Angle elementUnstructuredSceneStateHeadingRangeEnd(-6.283185308);
     123                 :          1 :   elementUnstructuredSceneStateHeadingRange.end = elementUnstructuredSceneStateHeadingRangeEnd;
     124                 :          1 :   elementUnstructuredSceneState.headingRange = elementUnstructuredSceneStateHeadingRange;
     125                 :          1 :   ::ad::rss::state::UnstructuredSceneStateInformation elementUnstructuredSceneStateRssStateInformation;
     126                 :          1 :   ::ad::physics::Distance2DList elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet;
     127                 :          1 :   ::ad::physics::Distance2D elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement;
     128                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX(-1e9);
     129                 :            :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.x
     130                 :          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX;
     131                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY(-1e9);
     132                 :            :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.y
     133                 :          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY;
     134         [ +  - ]:          1 :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet.resize(
     135                 :            :     1, elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement);
     136                 :            :   elementUnstructuredSceneStateRssStateInformation.brakeTrajectorySet
     137         [ +  - ]:          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet;
     138                 :          1 :   ::ad::physics::Distance2DList elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet;
     139                 :          1 :   ::ad::physics::Distance2D elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement;
     140                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX(-1e9);
     141                 :            :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.x
     142                 :          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX;
     143                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY(-1e9);
     144                 :            :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.y
     145                 :          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY;
     146         [ +  - ]:          1 :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet.resize(
     147                 :            :     1, elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement);
     148                 :            :   elementUnstructuredSceneStateRssStateInformation.continueForwardTrajectorySet
     149         [ +  - ]:          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet;
     150         [ +  - ]:          1 :   elementUnstructuredSceneState.rssStateInformation = elementUnstructuredSceneStateRssStateInformation;
     151                 :          1 :   ::ad::rss::world::LongitudinalRssAccelerationValues elementUnstructuredSceneStateAlphaLon;
     152                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonAccelMax(-1e2);
     153                 :          1 :   elementUnstructuredSceneStateAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     154                 :          1 :   elementUnstructuredSceneStateAlphaLon.accelMax = elementUnstructuredSceneStateAlphaLonAccelMax;
     155                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMax(-1e2);
     156                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMax = elementUnstructuredSceneStateAlphaLonBrakeMax;
     157                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMin(-1e2);
     158                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLonBrakeMin;
     159                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMinCorrect(-1e2);
     160                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMinCorrect = elementUnstructuredSceneStateAlphaLonBrakeMinCorrect;
     161                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLon.brakeMax;
     162                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMinCorrect = elementUnstructuredSceneStateAlphaLon.brakeMin;
     163                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLon.brakeMinCorrect;
     164                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMax = elementUnstructuredSceneStateAlphaLon.brakeMin;
     165                 :          1 :   elementUnstructuredSceneState.alphaLon = elementUnstructuredSceneStateAlphaLon;
     166         [ +  - ]:          1 :   element.unstructuredSceneState = elementUnstructuredSceneState;
     167                 :          1 :   ::ad::rss::situation::SituationType elementSituationType(::ad::rss::situation::SituationType::NotRelevant);
     168                 :          1 :   element.situationType = elementSituationType;
     169         [ +  - ]:          1 :   value.resize(1000, element);
     170   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     171                 :            : }
     172                 :            : 
     173                 :          2 : TEST(RssStateVectorValidInputRangeTests, testValidInputRangeHigherThanInputRangeMax)
     174                 :            : {
     175                 :          1 :   ::ad::rss::state::RssStateVector value;
     176                 :          1 :   ::ad::rss::state::RssState element;
     177                 :          1 :   ::ad::rss::world::ObjectId elementObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     178                 :          1 :   element.objectId = elementObjectId;
     179                 :          1 :   ::ad::rss::situation::SituationId elementSituationId(
     180                 :            :     std::numeric_limits<::ad::rss::situation::SituationId>::lowest());
     181                 :          1 :   element.situationId = elementSituationId;
     182                 :          1 :   ::ad::rss::state::LongitudinalRssState elementLongitudinalState;
     183                 :          1 :   bool elementLongitudinalStateIsSafe{true};
     184                 :          1 :   elementLongitudinalState.isSafe = elementLongitudinalStateIsSafe;
     185                 :          1 :   ::ad::rss::state::LongitudinalResponse elementLongitudinalStateResponse(::ad::rss::state::LongitudinalResponse::None);
     186                 :          1 :   elementLongitudinalState.response = elementLongitudinalStateResponse;
     187                 :          1 :   ::ad::rss::world::LongitudinalRssAccelerationValues elementLongitudinalStateAlphaLon;
     188                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonAccelMax(-1e2);
     189                 :          1 :   elementLongitudinalStateAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     190                 :          1 :   elementLongitudinalStateAlphaLon.accelMax = elementLongitudinalStateAlphaLonAccelMax;
     191                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMax(-1e2);
     192                 :          1 :   elementLongitudinalStateAlphaLon.brakeMax = elementLongitudinalStateAlphaLonBrakeMax;
     193                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMin(-1e2);
     194                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLonBrakeMin;
     195                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMinCorrect(-1e2);
     196                 :          1 :   elementLongitudinalStateAlphaLon.brakeMinCorrect = elementLongitudinalStateAlphaLonBrakeMinCorrect;
     197                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLon.brakeMax;
     198                 :          1 :   elementLongitudinalStateAlphaLon.brakeMinCorrect = elementLongitudinalStateAlphaLon.brakeMin;
     199                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLon.brakeMinCorrect;
     200                 :          1 :   elementLongitudinalStateAlphaLon.brakeMax = elementLongitudinalStateAlphaLon.brakeMin;
     201                 :          1 :   elementLongitudinalState.alphaLon = elementLongitudinalStateAlphaLon;
     202                 :          1 :   ::ad::rss::state::RssStateInformation elementLongitudinalStateRssStateInformation;
     203                 :          1 :   ::ad::physics::Distance elementLongitudinalStateRssStateInformationSafeDistance(-1e9);
     204                 :          1 :   elementLongitudinalStateRssStateInformation.safeDistance = elementLongitudinalStateRssStateInformationSafeDistance;
     205                 :          1 :   ::ad::physics::Distance elementLongitudinalStateRssStateInformationCurrentDistance(-1e9);
     206                 :            :   elementLongitudinalStateRssStateInformation.currentDistance
     207                 :          1 :     = elementLongitudinalStateRssStateInformationCurrentDistance;
     208                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLongitudinalStateRssStateInformationEvaluator(
     209                 :            :     ::ad::rss::state::RssStateEvaluator::None);
     210                 :          1 :   elementLongitudinalStateRssStateInformation.evaluator = elementLongitudinalStateRssStateInformationEvaluator;
     211                 :          1 :   elementLongitudinalState.rssStateInformation = elementLongitudinalStateRssStateInformation;
     212                 :          1 :   element.longitudinalState = elementLongitudinalState;
     213                 :          1 :   ::ad::rss::state::LateralRssState elementLateralStateRight;
     214                 :          1 :   bool elementLateralStateRightIsSafe{true};
     215                 :          1 :   elementLateralStateRight.isSafe = elementLateralStateRightIsSafe;
     216                 :          1 :   ::ad::rss::state::LateralResponse elementLateralStateRightResponse(::ad::rss::state::LateralResponse::None);
     217                 :          1 :   elementLateralStateRight.response = elementLateralStateRightResponse;
     218                 :          1 :   ::ad::rss::world::LateralRssAccelerationValues elementLateralStateRightAlphaLat;
     219                 :          1 :   ::ad::physics::Acceleration elementLateralStateRightAlphaLatAccelMax(-1e2);
     220                 :          1 :   elementLateralStateRightAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     221                 :          1 :   elementLateralStateRightAlphaLat.accelMax = elementLateralStateRightAlphaLatAccelMax;
     222                 :          1 :   ::ad::physics::Acceleration elementLateralStateRightAlphaLatBrakeMin(-1e2);
     223                 :          1 :   elementLateralStateRightAlphaLat.brakeMin = elementLateralStateRightAlphaLatBrakeMin;
     224                 :          1 :   elementLateralStateRight.alphaLat = elementLateralStateRightAlphaLat;
     225                 :          1 :   ::ad::rss::state::RssStateInformation elementLateralStateRightRssStateInformation;
     226                 :          1 :   ::ad::physics::Distance elementLateralStateRightRssStateInformationSafeDistance(-1e9);
     227                 :          1 :   elementLateralStateRightRssStateInformation.safeDistance = elementLateralStateRightRssStateInformationSafeDistance;
     228                 :          1 :   ::ad::physics::Distance elementLateralStateRightRssStateInformationCurrentDistance(-1e9);
     229                 :            :   elementLateralStateRightRssStateInformation.currentDistance
     230                 :          1 :     = elementLateralStateRightRssStateInformationCurrentDistance;
     231                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLateralStateRightRssStateInformationEvaluator(
     232                 :            :     ::ad::rss::state::RssStateEvaluator::None);
     233                 :          1 :   elementLateralStateRightRssStateInformation.evaluator = elementLateralStateRightRssStateInformationEvaluator;
     234                 :          1 :   elementLateralStateRight.rssStateInformation = elementLateralStateRightRssStateInformation;
     235                 :          1 :   element.lateralStateRight = elementLateralStateRight;
     236                 :          1 :   ::ad::rss::state::LateralRssState elementLateralStateLeft;
     237                 :          1 :   bool elementLateralStateLeftIsSafe{true};
     238                 :          1 :   elementLateralStateLeft.isSafe = elementLateralStateLeftIsSafe;
     239                 :          1 :   ::ad::rss::state::LateralResponse elementLateralStateLeftResponse(::ad::rss::state::LateralResponse::None);
     240                 :          1 :   elementLateralStateLeft.response = elementLateralStateLeftResponse;
     241                 :          1 :   ::ad::rss::world::LateralRssAccelerationValues elementLateralStateLeftAlphaLat;
     242                 :          1 :   ::ad::physics::Acceleration elementLateralStateLeftAlphaLatAccelMax(-1e2);
     243                 :          1 :   elementLateralStateLeftAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     244                 :          1 :   elementLateralStateLeftAlphaLat.accelMax = elementLateralStateLeftAlphaLatAccelMax;
     245                 :          1 :   ::ad::physics::Acceleration elementLateralStateLeftAlphaLatBrakeMin(-1e2);
     246                 :          1 :   elementLateralStateLeftAlphaLat.brakeMin = elementLateralStateLeftAlphaLatBrakeMin;
     247                 :          1 :   elementLateralStateLeft.alphaLat = elementLateralStateLeftAlphaLat;
     248                 :          1 :   ::ad::rss::state::RssStateInformation elementLateralStateLeftRssStateInformation;
     249                 :          1 :   ::ad::physics::Distance elementLateralStateLeftRssStateInformationSafeDistance(-1e9);
     250                 :          1 :   elementLateralStateLeftRssStateInformation.safeDistance = elementLateralStateLeftRssStateInformationSafeDistance;
     251                 :          1 :   ::ad::physics::Distance elementLateralStateLeftRssStateInformationCurrentDistance(-1e9);
     252                 :            :   elementLateralStateLeftRssStateInformation.currentDistance
     253                 :          1 :     = elementLateralStateLeftRssStateInformationCurrentDistance;
     254                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLateralStateLeftRssStateInformationEvaluator(
     255                 :            :     ::ad::rss::state::RssStateEvaluator::None);
     256                 :          1 :   elementLateralStateLeftRssStateInformation.evaluator = elementLateralStateLeftRssStateInformationEvaluator;
     257                 :          1 :   elementLateralStateLeft.rssStateInformation = elementLateralStateLeftRssStateInformation;
     258                 :          1 :   element.lateralStateLeft = elementLateralStateLeft;
     259                 :          1 :   ::ad::rss::state::UnstructuredSceneRssState elementUnstructuredSceneState;
     260                 :          1 :   bool elementUnstructuredSceneStateIsSafe{true};
     261                 :          1 :   elementUnstructuredSceneState.isSafe = elementUnstructuredSceneStateIsSafe;
     262                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse elementUnstructuredSceneStateResponse(
     263                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     264                 :          1 :   elementUnstructuredSceneState.response = elementUnstructuredSceneStateResponse;
     265                 :          1 :   ::ad::rss::state::HeadingRange elementUnstructuredSceneStateHeadingRange;
     266                 :          1 :   ::ad::physics::Angle elementUnstructuredSceneStateHeadingRangeBegin(-6.283185308);
     267                 :          1 :   elementUnstructuredSceneStateHeadingRange.begin = elementUnstructuredSceneStateHeadingRangeBegin;
     268                 :          1 :   ::ad::physics::Angle elementUnstructuredSceneStateHeadingRangeEnd(-6.283185308);
     269                 :          1 :   elementUnstructuredSceneStateHeadingRange.end = elementUnstructuredSceneStateHeadingRangeEnd;
     270                 :          1 :   elementUnstructuredSceneState.headingRange = elementUnstructuredSceneStateHeadingRange;
     271                 :          1 :   ::ad::rss::state::UnstructuredSceneStateInformation elementUnstructuredSceneStateRssStateInformation;
     272                 :          1 :   ::ad::physics::Distance2DList elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet;
     273                 :          1 :   ::ad::physics::Distance2D elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement;
     274                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX(-1e9);
     275                 :            :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.x
     276                 :          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX;
     277                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY(-1e9);
     278                 :            :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.y
     279                 :          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY;
     280         [ +  - ]:          1 :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet.resize(
     281                 :            :     1, elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement);
     282                 :            :   elementUnstructuredSceneStateRssStateInformation.brakeTrajectorySet
     283         [ +  - ]:          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet;
     284                 :          1 :   ::ad::physics::Distance2DList elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet;
     285                 :          1 :   ::ad::physics::Distance2D elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement;
     286                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX(-1e9);
     287                 :            :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.x
     288                 :          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX;
     289                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY(-1e9);
     290                 :            :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.y
     291                 :          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY;
     292         [ +  - ]:          1 :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet.resize(
     293                 :            :     1, elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement);
     294                 :            :   elementUnstructuredSceneStateRssStateInformation.continueForwardTrajectorySet
     295         [ +  - ]:          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet;
     296         [ +  - ]:          1 :   elementUnstructuredSceneState.rssStateInformation = elementUnstructuredSceneStateRssStateInformation;
     297                 :          1 :   ::ad::rss::world::LongitudinalRssAccelerationValues elementUnstructuredSceneStateAlphaLon;
     298                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonAccelMax(-1e2);
     299                 :          1 :   elementUnstructuredSceneStateAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     300                 :          1 :   elementUnstructuredSceneStateAlphaLon.accelMax = elementUnstructuredSceneStateAlphaLonAccelMax;
     301                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMax(-1e2);
     302                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMax = elementUnstructuredSceneStateAlphaLonBrakeMax;
     303                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMin(-1e2);
     304                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLonBrakeMin;
     305                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMinCorrect(-1e2);
     306                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMinCorrect = elementUnstructuredSceneStateAlphaLonBrakeMinCorrect;
     307                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLon.brakeMax;
     308                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMinCorrect = elementUnstructuredSceneStateAlphaLon.brakeMin;
     309                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLon.brakeMinCorrect;
     310                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMax = elementUnstructuredSceneStateAlphaLon.brakeMin;
     311                 :          1 :   elementUnstructuredSceneState.alphaLon = elementUnstructuredSceneStateAlphaLon;
     312         [ +  - ]:          1 :   element.unstructuredSceneState = elementUnstructuredSceneState;
     313                 :          1 :   ::ad::rss::situation::SituationType elementSituationType(::ad::rss::situation::SituationType::NotRelevant);
     314                 :          1 :   element.situationType = elementSituationType;
     315         [ +  - ]:          1 :   value.resize(1001, element);
     316   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     317                 :            : }
     318                 :            : 
     319                 :          2 : TEST(RssStateVectorValidInputRangeTests, testValidInputRangeElementTypeInvalid)
     320                 :            : {
     321                 :          1 :   ::ad::rss::state::RssStateVector value;
     322                 :          1 :   ::ad::rss::state::RssState element;
     323                 :          1 :   ::ad::rss::state::LongitudinalRssState elementLongitudinalState;
     324                 :          1 :   ::ad::rss::state::LongitudinalResponse elementLongitudinalStateResponse(
     325                 :            :     static_cast<::ad::rss::state::LongitudinalResponse>(-1));
     326                 :          1 :   elementLongitudinalState.response = elementLongitudinalStateResponse;
     327                 :          1 :   element.longitudinalState = elementLongitudinalState;
     328         [ +  - ]:          1 :   value.resize(999, element);
     329   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     330                 :            : }
     331                 :            : 
     332                 :          2 : TEST(RssStateVectorValidInputRangeTests, testValidInputRangeElementValid)
     333                 :            : {
     334                 :          1 :   ::ad::rss::state::RssStateVector value;
     335                 :          1 :   ::ad::rss::state::RssState element;
     336                 :          1 :   ::ad::rss::world::ObjectId elementObjectId(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     337                 :          1 :   element.objectId = elementObjectId;
     338                 :          1 :   ::ad::rss::situation::SituationId elementSituationId(
     339                 :            :     std::numeric_limits<::ad::rss::situation::SituationId>::lowest());
     340                 :          1 :   element.situationId = elementSituationId;
     341                 :          1 :   ::ad::rss::state::LongitudinalRssState elementLongitudinalState;
     342                 :          1 :   bool elementLongitudinalStateIsSafe{true};
     343                 :          1 :   elementLongitudinalState.isSafe = elementLongitudinalStateIsSafe;
     344                 :          1 :   ::ad::rss::state::LongitudinalResponse elementLongitudinalStateResponse(::ad::rss::state::LongitudinalResponse::None);
     345                 :          1 :   elementLongitudinalState.response = elementLongitudinalStateResponse;
     346                 :          1 :   ::ad::rss::world::LongitudinalRssAccelerationValues elementLongitudinalStateAlphaLon;
     347                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonAccelMax(-1e2);
     348                 :          1 :   elementLongitudinalStateAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     349                 :          1 :   elementLongitudinalStateAlphaLon.accelMax = elementLongitudinalStateAlphaLonAccelMax;
     350                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMax(-1e2);
     351                 :          1 :   elementLongitudinalStateAlphaLon.brakeMax = elementLongitudinalStateAlphaLonBrakeMax;
     352                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMin(-1e2);
     353                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLonBrakeMin;
     354                 :          1 :   ::ad::physics::Acceleration elementLongitudinalStateAlphaLonBrakeMinCorrect(-1e2);
     355                 :          1 :   elementLongitudinalStateAlphaLon.brakeMinCorrect = elementLongitudinalStateAlphaLonBrakeMinCorrect;
     356                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLon.brakeMax;
     357                 :          1 :   elementLongitudinalStateAlphaLon.brakeMinCorrect = elementLongitudinalStateAlphaLon.brakeMin;
     358                 :          1 :   elementLongitudinalStateAlphaLon.brakeMin = elementLongitudinalStateAlphaLon.brakeMinCorrect;
     359                 :          1 :   elementLongitudinalStateAlphaLon.brakeMax = elementLongitudinalStateAlphaLon.brakeMin;
     360                 :          1 :   elementLongitudinalState.alphaLon = elementLongitudinalStateAlphaLon;
     361                 :          1 :   ::ad::rss::state::RssStateInformation elementLongitudinalStateRssStateInformation;
     362                 :          1 :   ::ad::physics::Distance elementLongitudinalStateRssStateInformationSafeDistance(-1e9);
     363                 :          1 :   elementLongitudinalStateRssStateInformation.safeDistance = elementLongitudinalStateRssStateInformationSafeDistance;
     364                 :          1 :   ::ad::physics::Distance elementLongitudinalStateRssStateInformationCurrentDistance(-1e9);
     365                 :            :   elementLongitudinalStateRssStateInformation.currentDistance
     366                 :          1 :     = elementLongitudinalStateRssStateInformationCurrentDistance;
     367                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLongitudinalStateRssStateInformationEvaluator(
     368                 :            :     ::ad::rss::state::RssStateEvaluator::None);
     369                 :          1 :   elementLongitudinalStateRssStateInformation.evaluator = elementLongitudinalStateRssStateInformationEvaluator;
     370                 :          1 :   elementLongitudinalState.rssStateInformation = elementLongitudinalStateRssStateInformation;
     371                 :          1 :   element.longitudinalState = elementLongitudinalState;
     372                 :          1 :   ::ad::rss::state::LateralRssState elementLateralStateRight;
     373                 :          1 :   bool elementLateralStateRightIsSafe{true};
     374                 :          1 :   elementLateralStateRight.isSafe = elementLateralStateRightIsSafe;
     375                 :          1 :   ::ad::rss::state::LateralResponse elementLateralStateRightResponse(::ad::rss::state::LateralResponse::None);
     376                 :          1 :   elementLateralStateRight.response = elementLateralStateRightResponse;
     377                 :          1 :   ::ad::rss::world::LateralRssAccelerationValues elementLateralStateRightAlphaLat;
     378                 :          1 :   ::ad::physics::Acceleration elementLateralStateRightAlphaLatAccelMax(-1e2);
     379                 :          1 :   elementLateralStateRightAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     380                 :          1 :   elementLateralStateRightAlphaLat.accelMax = elementLateralStateRightAlphaLatAccelMax;
     381                 :          1 :   ::ad::physics::Acceleration elementLateralStateRightAlphaLatBrakeMin(-1e2);
     382                 :          1 :   elementLateralStateRightAlphaLat.brakeMin = elementLateralStateRightAlphaLatBrakeMin;
     383                 :          1 :   elementLateralStateRight.alphaLat = elementLateralStateRightAlphaLat;
     384                 :          1 :   ::ad::rss::state::RssStateInformation elementLateralStateRightRssStateInformation;
     385                 :          1 :   ::ad::physics::Distance elementLateralStateRightRssStateInformationSafeDistance(-1e9);
     386                 :          1 :   elementLateralStateRightRssStateInformation.safeDistance = elementLateralStateRightRssStateInformationSafeDistance;
     387                 :          1 :   ::ad::physics::Distance elementLateralStateRightRssStateInformationCurrentDistance(-1e9);
     388                 :            :   elementLateralStateRightRssStateInformation.currentDistance
     389                 :          1 :     = elementLateralStateRightRssStateInformationCurrentDistance;
     390                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLateralStateRightRssStateInformationEvaluator(
     391                 :            :     ::ad::rss::state::RssStateEvaluator::None);
     392                 :          1 :   elementLateralStateRightRssStateInformation.evaluator = elementLateralStateRightRssStateInformationEvaluator;
     393                 :          1 :   elementLateralStateRight.rssStateInformation = elementLateralStateRightRssStateInformation;
     394                 :          1 :   element.lateralStateRight = elementLateralStateRight;
     395                 :          1 :   ::ad::rss::state::LateralRssState elementLateralStateLeft;
     396                 :          1 :   bool elementLateralStateLeftIsSafe{true};
     397                 :          1 :   elementLateralStateLeft.isSafe = elementLateralStateLeftIsSafe;
     398                 :          1 :   ::ad::rss::state::LateralResponse elementLateralStateLeftResponse(::ad::rss::state::LateralResponse::None);
     399                 :          1 :   elementLateralStateLeft.response = elementLateralStateLeftResponse;
     400                 :          1 :   ::ad::rss::world::LateralRssAccelerationValues elementLateralStateLeftAlphaLat;
     401                 :          1 :   ::ad::physics::Acceleration elementLateralStateLeftAlphaLatAccelMax(-1e2);
     402                 :          1 :   elementLateralStateLeftAlphaLatAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     403                 :          1 :   elementLateralStateLeftAlphaLat.accelMax = elementLateralStateLeftAlphaLatAccelMax;
     404                 :          1 :   ::ad::physics::Acceleration elementLateralStateLeftAlphaLatBrakeMin(-1e2);
     405                 :          1 :   elementLateralStateLeftAlphaLat.brakeMin = elementLateralStateLeftAlphaLatBrakeMin;
     406                 :          1 :   elementLateralStateLeft.alphaLat = elementLateralStateLeftAlphaLat;
     407                 :          1 :   ::ad::rss::state::RssStateInformation elementLateralStateLeftRssStateInformation;
     408                 :          1 :   ::ad::physics::Distance elementLateralStateLeftRssStateInformationSafeDistance(-1e9);
     409                 :          1 :   elementLateralStateLeftRssStateInformation.safeDistance = elementLateralStateLeftRssStateInformationSafeDistance;
     410                 :          1 :   ::ad::physics::Distance elementLateralStateLeftRssStateInformationCurrentDistance(-1e9);
     411                 :            :   elementLateralStateLeftRssStateInformation.currentDistance
     412                 :          1 :     = elementLateralStateLeftRssStateInformationCurrentDistance;
     413                 :          1 :   ::ad::rss::state::RssStateEvaluator elementLateralStateLeftRssStateInformationEvaluator(
     414                 :            :     ::ad::rss::state::RssStateEvaluator::None);
     415                 :          1 :   elementLateralStateLeftRssStateInformation.evaluator = elementLateralStateLeftRssStateInformationEvaluator;
     416                 :          1 :   elementLateralStateLeft.rssStateInformation = elementLateralStateLeftRssStateInformation;
     417                 :          1 :   element.lateralStateLeft = elementLateralStateLeft;
     418                 :          1 :   ::ad::rss::state::UnstructuredSceneRssState elementUnstructuredSceneState;
     419                 :          1 :   bool elementUnstructuredSceneStateIsSafe{true};
     420                 :          1 :   elementUnstructuredSceneState.isSafe = elementUnstructuredSceneStateIsSafe;
     421                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse elementUnstructuredSceneStateResponse(
     422                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     423                 :          1 :   elementUnstructuredSceneState.response = elementUnstructuredSceneStateResponse;
     424                 :          1 :   ::ad::rss::state::HeadingRange elementUnstructuredSceneStateHeadingRange;
     425                 :          1 :   ::ad::physics::Angle elementUnstructuredSceneStateHeadingRangeBegin(-6.283185308);
     426                 :          1 :   elementUnstructuredSceneStateHeadingRange.begin = elementUnstructuredSceneStateHeadingRangeBegin;
     427                 :          1 :   ::ad::physics::Angle elementUnstructuredSceneStateHeadingRangeEnd(-6.283185308);
     428                 :          1 :   elementUnstructuredSceneStateHeadingRange.end = elementUnstructuredSceneStateHeadingRangeEnd;
     429                 :          1 :   elementUnstructuredSceneState.headingRange = elementUnstructuredSceneStateHeadingRange;
     430                 :          1 :   ::ad::rss::state::UnstructuredSceneStateInformation elementUnstructuredSceneStateRssStateInformation;
     431                 :          1 :   ::ad::physics::Distance2DList elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet;
     432                 :          1 :   ::ad::physics::Distance2D elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement;
     433                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX(-1e9);
     434                 :            :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.x
     435                 :          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementX;
     436                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY(-1e9);
     437                 :            :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement.y
     438                 :          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElementY;
     439         [ +  - ]:          1 :   elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet.resize(
     440                 :            :     1, elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySetElement);
     441                 :            :   elementUnstructuredSceneStateRssStateInformation.brakeTrajectorySet
     442         [ +  - ]:          1 :     = elementUnstructuredSceneStateRssStateInformationBrakeTrajectorySet;
     443                 :          1 :   ::ad::physics::Distance2DList elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet;
     444                 :          1 :   ::ad::physics::Distance2D elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement;
     445                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX(-1e9);
     446                 :            :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.x
     447                 :          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementX;
     448                 :          1 :   ::ad::physics::Distance elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY(-1e9);
     449                 :            :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement.y
     450                 :          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElementY;
     451         [ +  - ]:          1 :   elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet.resize(
     452                 :            :     1, elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySetElement);
     453                 :            :   elementUnstructuredSceneStateRssStateInformation.continueForwardTrajectorySet
     454         [ +  - ]:          1 :     = elementUnstructuredSceneStateRssStateInformationContinueForwardTrajectorySet;
     455         [ +  - ]:          1 :   elementUnstructuredSceneState.rssStateInformation = elementUnstructuredSceneStateRssStateInformation;
     456                 :          1 :   ::ad::rss::world::LongitudinalRssAccelerationValues elementUnstructuredSceneStateAlphaLon;
     457                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonAccelMax(-1e2);
     458                 :          1 :   elementUnstructuredSceneStateAlphaLonAccelMax = ::ad::physics::Acceleration(0.); // set to valid value within struct
     459                 :          1 :   elementUnstructuredSceneStateAlphaLon.accelMax = elementUnstructuredSceneStateAlphaLonAccelMax;
     460                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMax(-1e2);
     461                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMax = elementUnstructuredSceneStateAlphaLonBrakeMax;
     462                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMin(-1e2);
     463                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLonBrakeMin;
     464                 :          1 :   ::ad::physics::Acceleration elementUnstructuredSceneStateAlphaLonBrakeMinCorrect(-1e2);
     465                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMinCorrect = elementUnstructuredSceneStateAlphaLonBrakeMinCorrect;
     466                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLon.brakeMax;
     467                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMinCorrect = elementUnstructuredSceneStateAlphaLon.brakeMin;
     468                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMin = elementUnstructuredSceneStateAlphaLon.brakeMinCorrect;
     469                 :          1 :   elementUnstructuredSceneStateAlphaLon.brakeMax = elementUnstructuredSceneStateAlphaLon.brakeMin;
     470                 :          1 :   elementUnstructuredSceneState.alphaLon = elementUnstructuredSceneStateAlphaLon;
     471         [ +  - ]:          1 :   element.unstructuredSceneState = elementUnstructuredSceneState;
     472                 :          1 :   ::ad::rss::situation::SituationType elementSituationType(::ad::rss::situation::SituationType::NotRelevant);
     473                 :          1 :   element.situationType = elementSituationType;
     474         [ +  - ]:          1 :   value.push_back(element);
     475   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     476                 :            : }
     477                 :            : 
     478                 :          2 : TEST(RssStateVectorValidInputRangeTests, testValidInputRangeElementInvalid)
     479                 :            : {
     480                 :          1 :   ::ad::rss::state::RssStateVector value;
     481                 :          1 :   ::ad::rss::state::RssState element;
     482                 :          1 :   ::ad::rss::state::LongitudinalRssState elementLongitudinalState;
     483                 :          1 :   ::ad::rss::state::LongitudinalResponse elementLongitudinalStateResponse(
     484                 :            :     static_cast<::ad::rss::state::LongitudinalResponse>(-1));
     485                 :          1 :   elementLongitudinalState.response = elementLongitudinalStateResponse;
     486                 :          1 :   element.longitudinalState = elementLongitudinalState;
     487         [ +  - ]:          1 :   value.push_back(element);
     488   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     489                 :            : }

Generated by: LCOV version 1.14