LCOV - code coverage report
Current view: top level - tests/generated/ad/rss/state - ProperResponseValidInputRangeTests.cpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 622 622 100.0 %
Date: 2024-12-17 12:06:18 Functions: 22 22 100.0 %
Branches: 66 220 30.0 %

           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/ProperResponseValidInputRange.hpp"
      20                 :            : 
      21                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRange)
      22                 :            : {
      23                 :          1 :   ::ad::rss::state::ProperResponse value;
      24                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
      25                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
      26                 :          1 :   value.timeIndex = valueTimeIndex;
      27                 :          1 :   bool valueIsSafe{true};
      28                 :          1 :   value.isSafe = valueIsSafe;
      29                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
      30                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
      31         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
      32         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
      33                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
      34                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
      35                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
      36                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
      37                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
      38                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
      39                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
      40                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
      41                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
      42                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
      43                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
      44                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
      45         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
      46         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
      47                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
      48                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
      49                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
      50                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
      51                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
      52                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
      53                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
      54                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
      55                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
      56                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
      57                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
      58                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
      59                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
      60                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
      61                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
      62                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
      63                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
      64                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
      65                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
      66                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
      67                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
      68                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
      69                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
      70                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
      71                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
      72                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
      73                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
      74                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
      75                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
      76   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      77                 :            : }
      78                 :            : 
      79                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeLongitudinalResponseTooSmall)
      80                 :            : {
      81                 :          1 :   ::ad::rss::state::ProperResponse value;
      82                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
      83                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
      84                 :          1 :   value.timeIndex = valueTimeIndex;
      85                 :          1 :   bool valueIsSafe{true};
      86                 :          1 :   value.isSafe = valueIsSafe;
      87                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
      88                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
      89         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
      90         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
      91                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
      92                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
      93                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
      94                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
      95                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
      96                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
      97                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
      98                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
      99                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     100                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     101                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     102                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     103         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     104         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     105                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     106                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     107                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     108                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     109                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     110                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     111                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     112                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     113                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     114                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     115                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     116                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     117                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     118                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     119                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     120                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     121                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     122                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     123                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     124                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     125                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     126                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     127                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     128                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     129                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     130                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     131                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     132                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     133                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     134                 :            : 
     135                 :            :   // override member with data type value below input range minimum
     136                 :          1 :   ::ad::rss::state::LongitudinalResponse invalidInitializedMember(
     137                 :            :     static_cast<::ad::rss::state::LongitudinalResponse>(-1));
     138                 :          1 :   value.longitudinalResponse = invalidInitializedMember;
     139   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     140                 :            : }
     141                 :            : 
     142                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeLongitudinalResponseTooBig)
     143                 :            : {
     144                 :          1 :   ::ad::rss::state::ProperResponse value;
     145                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     146                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     147                 :          1 :   value.timeIndex = valueTimeIndex;
     148                 :          1 :   bool valueIsSafe{true};
     149                 :          1 :   value.isSafe = valueIsSafe;
     150                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     151                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     152         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     153         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     154                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     155                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     156                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     157                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     158                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     159                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     160                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     161                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     162                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     163                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     164                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     165                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     166         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     167         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     168                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     169                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     170                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     171                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     172                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     173                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     174                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     175                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     176                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     177                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     178                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     179                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     180                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     181                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     182                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     183                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     184                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     185                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     186                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     187                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     188                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     189                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     190                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     191                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     192                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     193                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     194                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     195                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     196                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     197                 :            : 
     198                 :            :   // override member with data type value above input range maximum
     199                 :          1 :   ::ad::rss::state::LongitudinalResponse invalidInitializedMember(
     200                 :            :     static_cast<::ad::rss::state::LongitudinalResponse>(-1));
     201                 :          1 :   value.longitudinalResponse = invalidInitializedMember;
     202   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     203                 :            : }
     204                 :            : 
     205                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeLateralResponseRightTooSmall)
     206                 :            : {
     207                 :          1 :   ::ad::rss::state::ProperResponse value;
     208                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     209                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     210                 :          1 :   value.timeIndex = valueTimeIndex;
     211                 :          1 :   bool valueIsSafe{true};
     212                 :          1 :   value.isSafe = valueIsSafe;
     213                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     214                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     215         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     216         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     217                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     218                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     219                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     220                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     221                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     222                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     223                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     224                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     225                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     226                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     227                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     228                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     229         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     230         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     231                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     232                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     233                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     234                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     235                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     236                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     237                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     238                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     239                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     240                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     241                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     242                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     243                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     244                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     245                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     246                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     247                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     248                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     249                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     250                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     251                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     252                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     253                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     254                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     255                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     256                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     257                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     258                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     259                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     260                 :            : 
     261                 :            :   // override member with data type value below input range minimum
     262                 :          1 :   ::ad::rss::state::LateralResponse invalidInitializedMember(static_cast<::ad::rss::state::LateralResponse>(-1));
     263                 :          1 :   value.lateralResponseRight = invalidInitializedMember;
     264   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     265                 :            : }
     266                 :            : 
     267                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeLateralResponseRightTooBig)
     268                 :            : {
     269                 :          1 :   ::ad::rss::state::ProperResponse value;
     270                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     271                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     272                 :          1 :   value.timeIndex = valueTimeIndex;
     273                 :          1 :   bool valueIsSafe{true};
     274                 :          1 :   value.isSafe = valueIsSafe;
     275                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     276                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     277         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     278         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     279                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     280                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     281                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     282                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     283                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     284                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     285                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     286                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     287                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     288                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     289                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     290                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     291         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     292         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     293                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     294                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     295                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     296                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     297                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     298                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     299                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     300                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     301                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     302                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     303                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     304                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     305                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     306                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     307                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     308                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     309                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     310                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     311                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     312                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     313                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     314                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     315                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     316                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     317                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     318                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     319                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     320                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     321                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     322                 :            : 
     323                 :            :   // override member with data type value above input range maximum
     324                 :          1 :   ::ad::rss::state::LateralResponse invalidInitializedMember(static_cast<::ad::rss::state::LateralResponse>(-1));
     325                 :          1 :   value.lateralResponseRight = invalidInitializedMember;
     326   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     327                 :            : }
     328                 :            : 
     329                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeLateralResponseLeftTooSmall)
     330                 :            : {
     331                 :          1 :   ::ad::rss::state::ProperResponse value;
     332                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     333                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     334                 :          1 :   value.timeIndex = valueTimeIndex;
     335                 :          1 :   bool valueIsSafe{true};
     336                 :          1 :   value.isSafe = valueIsSafe;
     337                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     338                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     339         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     340         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     341                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     342                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     343                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     344                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     345                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     346                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     347                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     348                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     349                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     350                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     351                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     352                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     353         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     354         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     355                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     356                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     357                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     358                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     359                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     360                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     361                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     362                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     363                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     364                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     365                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     366                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     367                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     368                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     369                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     370                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     371                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     372                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     373                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     374                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     375                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     376                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     377                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     378                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     379                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     380                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     381                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     382                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     383                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     384                 :            : 
     385                 :            :   // override member with data type value below input range minimum
     386                 :          1 :   ::ad::rss::state::LateralResponse invalidInitializedMember(static_cast<::ad::rss::state::LateralResponse>(-1));
     387                 :          1 :   value.lateralResponseLeft = invalidInitializedMember;
     388   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     389                 :            : }
     390                 :            : 
     391                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeLateralResponseLeftTooBig)
     392                 :            : {
     393                 :          1 :   ::ad::rss::state::ProperResponse value;
     394                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     395                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     396                 :          1 :   value.timeIndex = valueTimeIndex;
     397                 :          1 :   bool valueIsSafe{true};
     398                 :          1 :   value.isSafe = valueIsSafe;
     399                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     400                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     401         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     402         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     403                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     404                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     405                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     406                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     407                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     408                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     409                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     410                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     411                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     412                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     413                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     414                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     415         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     416         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     417                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     418                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     419                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     420                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     421                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     422                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     423                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     424                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     425                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     426                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     427                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     428                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     429                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     430                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     431                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     432                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     433                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     434                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     435                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     436                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     437                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     438                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     439                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     440                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     441                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     442                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     443                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     444                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     445                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     446                 :            : 
     447                 :            :   // override member with data type value above input range maximum
     448                 :          1 :   ::ad::rss::state::LateralResponse invalidInitializedMember(static_cast<::ad::rss::state::LateralResponse>(-1));
     449                 :          1 :   value.lateralResponseLeft = invalidInitializedMember;
     450   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     451                 :            : }
     452                 :            : 
     453                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeAccelerationRestrictionsTooSmall)
     454                 :            : {
     455                 :          1 :   ::ad::rss::state::ProperResponse value;
     456                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     457                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     458                 :          1 :   value.timeIndex = valueTimeIndex;
     459                 :          1 :   bool valueIsSafe{true};
     460                 :          1 :   value.isSafe = valueIsSafe;
     461                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     462                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     463         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     464         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     465                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     466                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     467                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     468                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     469                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     470                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     471                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     472                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     473                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     474                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     475                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     476                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     477         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     478         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     479                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     480                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     481                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     482                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     483                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     484                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     485                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     486                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     487                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     488                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     489                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     490                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     491                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     492                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     493                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     494                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     495                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     496                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     497                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     498                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     499                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     500                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     501                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     502                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     503                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     504                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     505                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     506                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     507                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     508                 :            : 
     509                 :            :   // override member with data type value below input range minimum
     510                 :          1 :   ::ad::rss::state::AccelerationRestriction invalidInitializedMember;
     511                 :          1 :   ::ad::physics::AccelerationRange invalidInitializedMemberLateralLeftRange;
     512                 :          1 :   ::ad::physics::Acceleration invalidInitializedMemberLateralLeftRangeMinimum(-1e2 * 1.1);
     513                 :          1 :   invalidInitializedMemberLateralLeftRange.minimum = invalidInitializedMemberLateralLeftRangeMinimum;
     514                 :          1 :   invalidInitializedMember.lateralLeftRange = invalidInitializedMemberLateralLeftRange;
     515                 :          1 :   value.accelerationRestrictions = invalidInitializedMember;
     516   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     517                 :            : }
     518                 :            : 
     519                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeAccelerationRestrictionsTooBig)
     520                 :            : {
     521                 :          1 :   ::ad::rss::state::ProperResponse value;
     522                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     523                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     524                 :          1 :   value.timeIndex = valueTimeIndex;
     525                 :          1 :   bool valueIsSafe{true};
     526                 :          1 :   value.isSafe = valueIsSafe;
     527                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     528                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     529         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     530         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     531                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     532                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     533                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     534                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     535                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     536                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     537                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     538                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     539                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     540                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     541                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     542                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     543         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     544         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     545                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     546                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     547                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     548                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     549                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     550                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     551                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     552                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     553                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     554                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     555                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     556                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     557                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     558                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     559                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     560                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     561                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     562                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     563                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     564                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     565                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     566                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     567                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     568                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     569                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     570                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     571                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     572                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     573                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     574                 :            : 
     575                 :            :   // override member with data type value above input range maximum
     576                 :          1 :   ::ad::rss::state::AccelerationRestriction invalidInitializedMember;
     577                 :          1 :   ::ad::physics::AccelerationRange invalidInitializedMemberLateralLeftRange;
     578                 :          1 :   ::ad::physics::Acceleration invalidInitializedMemberLateralLeftRangeMinimum(1e2 * 1.1);
     579                 :          1 :   invalidInitializedMemberLateralLeftRange.minimum = invalidInitializedMemberLateralLeftRangeMinimum;
     580                 :          1 :   invalidInitializedMember.lateralLeftRange = invalidInitializedMemberLateralLeftRange;
     581                 :          1 :   value.accelerationRestrictions = invalidInitializedMember;
     582   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     583                 :            : }
     584                 :            : 
     585                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeUnstructuredSceneResponseTooSmall)
     586                 :            : {
     587                 :          1 :   ::ad::rss::state::ProperResponse value;
     588                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     589                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     590                 :          1 :   value.timeIndex = valueTimeIndex;
     591                 :          1 :   bool valueIsSafe{true};
     592                 :          1 :   value.isSafe = valueIsSafe;
     593                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     594                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     595         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     596         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     597                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     598                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     599                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     600                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     601                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     602                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     603                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     604                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     605                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     606                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     607                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     608                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     609         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     610         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     611                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     612                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     613                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     614                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     615                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     616                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     617                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     618                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     619                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     620                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     621                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     622                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     623                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     624                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     625                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     626                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     627                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     628                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     629                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     630                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     631                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     632                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     633                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     634                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     635                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     636                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     637                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     638                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     639                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     640                 :            : 
     641                 :            :   // override member with data type value below input range minimum
     642                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse invalidInitializedMember(
     643                 :            :     static_cast<::ad::rss::state::UnstructuredSceneResponse>(-1));
     644                 :          1 :   value.unstructuredSceneResponse = invalidInitializedMember;
     645   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     646                 :            : }
     647                 :            : 
     648                 :          2 : TEST(ProperResponseValidInputRangeTests, testValidInputRangeUnstructuredSceneResponseTooBig)
     649                 :            : {
     650                 :          1 :   ::ad::rss::state::ProperResponse value;
     651                 :          1 :   ::ad::rss::world::TimeIndex valueTimeIndex(std::numeric_limits<::ad::rss::world::TimeIndex>::lowest());
     652                 :          1 :   valueTimeIndex = ::ad::rss::world::TimeIndex(1); // set to valid value within struct
     653                 :          1 :   value.timeIndex = valueTimeIndex;
     654                 :          1 :   bool valueIsSafe{true};
     655                 :          1 :   value.isSafe = valueIsSafe;
     656                 :          1 :   ::ad::rss::world::ObjectIdVector valueDangerousObjects;
     657                 :          1 :   ::ad::rss::world::ObjectId valueDangerousObjectsElement(std::numeric_limits<::ad::rss::world::ObjectId>::lowest());
     658         [ +  - ]:          1 :   valueDangerousObjects.resize(1, valueDangerousObjectsElement);
     659         [ +  - ]:          1 :   value.dangerousObjects = valueDangerousObjects;
     660                 :          1 :   ::ad::rss::state::LongitudinalResponse valueLongitudinalResponse(::ad::rss::state::LongitudinalResponse::None);
     661                 :          1 :   value.longitudinalResponse = valueLongitudinalResponse;
     662                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseRight(::ad::rss::state::LateralResponse::None);
     663                 :          1 :   value.lateralResponseRight = valueLateralResponseRight;
     664                 :          1 :   ::ad::rss::state::LateralResponse valueLateralResponseLeft(::ad::rss::state::LateralResponse::None);
     665                 :          1 :   value.lateralResponseLeft = valueLateralResponseLeft;
     666                 :          1 :   ::ad::rss::state::HeadingRangeVector valueHeadingRanges;
     667                 :          1 :   ::ad::rss::state::HeadingRange valueHeadingRangesElement;
     668                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementBegin(-6.283185308);
     669                 :          1 :   valueHeadingRangesElement.begin = valueHeadingRangesElementBegin;
     670                 :          1 :   ::ad::physics::Angle valueHeadingRangesElementEnd(-6.283185308);
     671                 :          1 :   valueHeadingRangesElement.end = valueHeadingRangesElementEnd;
     672         [ +  - ]:          1 :   valueHeadingRanges.resize(1, valueHeadingRangesElement);
     673         [ +  - ]:          1 :   value.headingRanges = valueHeadingRanges;
     674                 :          1 :   ::ad::rss::state::AccelerationRestriction valueAccelerationRestrictions;
     675                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralLeftRange;
     676                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMinimum(-1e2);
     677                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRangeMinimum;
     678                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralLeftRangeMaximum(-1e2);
     679                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRangeMaximum;
     680                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.maximum = valueAccelerationRestrictionsLateralLeftRange.minimum;
     681                 :          1 :   valueAccelerationRestrictionsLateralLeftRange.minimum = valueAccelerationRestrictionsLateralLeftRange.maximum;
     682                 :          1 :   valueAccelerationRestrictions.lateralLeftRange = valueAccelerationRestrictionsLateralLeftRange;
     683                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLongitudinalRange;
     684                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMinimum(-1e2);
     685                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRangeMinimum;
     686                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLongitudinalRangeMaximum(-1e2);
     687                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRangeMaximum;
     688                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.maximum = valueAccelerationRestrictionsLongitudinalRange.minimum;
     689                 :          1 :   valueAccelerationRestrictionsLongitudinalRange.minimum = valueAccelerationRestrictionsLongitudinalRange.maximum;
     690                 :          1 :   valueAccelerationRestrictions.longitudinalRange = valueAccelerationRestrictionsLongitudinalRange;
     691                 :          1 :   ::ad::physics::AccelerationRange valueAccelerationRestrictionsLateralRightRange;
     692                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMinimum(-1e2);
     693                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRangeMinimum;
     694                 :          1 :   ::ad::physics::Acceleration valueAccelerationRestrictionsLateralRightRangeMaximum(-1e2);
     695                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRangeMaximum;
     696                 :          1 :   valueAccelerationRestrictionsLateralRightRange.maximum = valueAccelerationRestrictionsLateralRightRange.minimum;
     697                 :          1 :   valueAccelerationRestrictionsLateralRightRange.minimum = valueAccelerationRestrictionsLateralRightRange.maximum;
     698                 :          1 :   valueAccelerationRestrictions.lateralRightRange = valueAccelerationRestrictionsLateralRightRange;
     699                 :          1 :   value.accelerationRestrictions = valueAccelerationRestrictions;
     700                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse valueUnstructuredSceneResponse(
     701                 :            :     ::ad::rss::state::UnstructuredSceneResponse::None);
     702                 :          1 :   value.unstructuredSceneResponse = valueUnstructuredSceneResponse;
     703                 :            : 
     704                 :            :   // override member with data type value above input range maximum
     705                 :          1 :   ::ad::rss::state::UnstructuredSceneResponse invalidInitializedMember(
     706                 :            :     static_cast<::ad::rss::state::UnstructuredSceneResponse>(-1));
     707                 :          1 :   value.unstructuredSceneResponse = invalidInitializedMember;
     708   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
     709                 :            : }

Generated by: LCOV version 1.14