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/world/UnstructuredSettingsValidInputRange.hpp" 20 : : 21 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRange) 22 : : { 23 : 1 : ::ad::rss::world::UnstructuredSettings value; 24 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 25 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 26 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 27 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 28 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 29 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 30 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 31 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 32 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 33 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 34 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 35 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 36 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 37 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 38 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 39 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 40 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 41 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 42 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 43 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 44 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 45 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 46 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 47 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 48 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 49 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 50 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 51 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 52 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 53 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 54 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 55 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 56 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 57 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(value)); - - - - - - - - ] 58 : : } 59 : : 60 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangePedestrianTurningRadiusTooSmall) 61 : : { 62 : 1 : ::ad::rss::world::UnstructuredSettings value; 63 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 64 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 65 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 66 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 67 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 68 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 69 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 70 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 71 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 72 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 73 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 74 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 75 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 76 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 77 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 78 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 79 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 80 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 81 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 82 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 83 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 84 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 85 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 86 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 87 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 88 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 89 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 90 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 91 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 92 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 93 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 94 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 95 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 96 : : 97 : : // override member with data type value below input range minimum 98 : 1 : ::ad::physics::Distance invalidInitializedMember(-1e9 * 1.1); 99 : 1 : value.pedestrianTurningRadius = invalidInitializedMember; 100 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 101 : : } 102 : : 103 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangePedestrianTurningRadiusTooBig) 104 : : { 105 : 1 : ::ad::rss::world::UnstructuredSettings value; 106 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 107 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 108 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 109 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 110 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 111 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 112 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 113 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 114 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 115 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 116 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 117 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 118 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 119 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 120 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 121 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 122 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 123 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 124 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 125 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 126 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 127 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 128 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 129 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 130 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 131 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 132 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 133 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 134 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 135 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 136 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 137 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 138 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 139 : : 140 : : // override member with data type value above input range maximum 141 : 1 : ::ad::physics::Distance invalidInitializedMember(1e9 * 1.1); 142 : 1 : value.pedestrianTurningRadius = invalidInitializedMember; 143 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 144 : : } 145 : : 146 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangepedestrianTurningRadiusDefault) 147 : : { 148 : 1 : ::ad::rss::world::UnstructuredSettings value; 149 : 1 : ::ad::physics::Distance valueDefault; 150 : 1 : value.pedestrianTurningRadius = valueDefault; 151 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 152 : : } 153 : : 154 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangeDriveAwayMaxAngleTooSmall) 155 : : { 156 : 1 : ::ad::rss::world::UnstructuredSettings value; 157 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 158 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 159 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 160 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 161 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 162 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 163 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 164 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 165 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 166 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 167 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 168 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 169 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 170 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 171 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 172 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 173 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 174 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 175 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 176 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 177 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 178 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 179 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 180 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 181 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 182 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 183 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 184 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 185 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 186 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 187 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 188 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 189 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 190 : : 191 : : // override member with data type value below input range minimum 192 : 1 : ::ad::physics::Angle invalidInitializedMember(-6.283185308 * 1.1); 193 : 1 : value.driveAwayMaxAngle = invalidInitializedMember; 194 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 195 : : } 196 : : 197 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangeDriveAwayMaxAngleTooBig) 198 : : { 199 : 1 : ::ad::rss::world::UnstructuredSettings value; 200 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 201 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 202 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 203 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 204 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 205 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 206 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 207 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 208 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 209 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 210 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 211 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 212 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 213 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 214 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 215 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 216 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 217 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 218 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 219 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 220 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 221 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 222 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 223 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 224 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 225 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 226 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 227 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 228 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 229 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 230 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 231 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 232 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 233 : : 234 : : // override member with data type value above input range maximum 235 : 1 : ::ad::physics::Angle invalidInitializedMember(6.283185308 * 1.1); 236 : 1 : value.driveAwayMaxAngle = invalidInitializedMember; 237 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 238 : : } 239 : : 240 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangedriveAwayMaxAngleDefault) 241 : : { 242 : 1 : ::ad::rss::world::UnstructuredSettings value; 243 : 1 : ::ad::physics::Angle valueDefault; 244 : 1 : value.driveAwayMaxAngle = valueDefault; 245 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 246 : : } 247 : : 248 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangeVehicleYawRateChangeTooSmall) 249 : : { 250 : 1 : ::ad::rss::world::UnstructuredSettings value; 251 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 252 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 253 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 254 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 255 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 256 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 257 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 258 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 259 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 260 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 261 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 262 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 263 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 264 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 265 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 266 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 267 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 268 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 269 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 270 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 271 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 272 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 273 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 274 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 275 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 276 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 277 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 278 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 279 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 280 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 281 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 282 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 283 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 284 : : 285 : : // override member with data type value below input range minimum 286 : 1 : ::ad::physics::AngularAcceleration invalidInitializedMember(-1e2 * 1.1); 287 : 1 : value.vehicleYawRateChange = invalidInitializedMember; 288 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 289 : : } 290 : : 291 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangeVehicleYawRateChangeTooBig) 292 : : { 293 : 1 : ::ad::rss::world::UnstructuredSettings value; 294 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 295 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 296 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 297 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 298 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 299 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 300 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 301 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 302 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 303 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 304 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 305 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 306 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 307 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 308 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 309 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 310 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 311 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 312 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 313 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 314 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 315 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 316 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 317 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 318 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 319 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 320 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 321 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 322 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 323 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 324 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 325 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 326 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 327 : : 328 : : // override member with data type value above input range maximum 329 : 1 : ::ad::physics::AngularAcceleration invalidInitializedMember(1e2 * 1.1); 330 : 1 : value.vehicleYawRateChange = invalidInitializedMember; 331 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 332 : : } 333 : : 334 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangevehicleYawRateChangeDefault) 335 : : { 336 : 1 : ::ad::rss::world::UnstructuredSettings value; 337 : 1 : ::ad::physics::AngularAcceleration valueDefault; 338 : 1 : value.vehicleYawRateChange = valueDefault; 339 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 340 : : } 341 : : 342 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangeVehicleMinRadiusTooSmall) 343 : : { 344 : 1 : ::ad::rss::world::UnstructuredSettings value; 345 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 346 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 347 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 348 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 349 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 350 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 351 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 352 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 353 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 354 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 355 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 356 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 357 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 358 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 359 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 360 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 361 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 362 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 363 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 364 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 365 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 366 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 367 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 368 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 369 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 370 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 371 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 372 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 373 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 374 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 375 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 376 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 377 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 378 : : 379 : : // override member with data type value below input range minimum 380 : 1 : ::ad::physics::Distance invalidInitializedMember(-1e9 * 1.1); 381 : 1 : value.vehicleMinRadius = invalidInitializedMember; 382 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 383 : : } 384 : : 385 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangeVehicleMinRadiusTooBig) 386 : : { 387 : 1 : ::ad::rss::world::UnstructuredSettings value; 388 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 389 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 390 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 391 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 392 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 393 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 394 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 395 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 396 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 397 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 398 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 399 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 400 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 401 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 402 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 403 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 404 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 405 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 406 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 407 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 408 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 409 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 410 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 411 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 412 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 413 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 414 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 415 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 416 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 417 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 418 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 419 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 420 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 421 : : 422 : : // override member with data type value above input range maximum 423 : 1 : ::ad::physics::Distance invalidInitializedMember(1e9 * 1.1); 424 : 1 : value.vehicleMinRadius = invalidInitializedMember; 425 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 426 : : } 427 : : 428 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangevehicleMinRadiusDefault) 429 : : { 430 : 1 : ::ad::rss::world::UnstructuredSettings value; 431 : 1 : ::ad::physics::Distance valueDefault; 432 : 1 : value.vehicleMinRadius = valueDefault; 433 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 434 : : } 435 : : 436 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangeVehicleTrajectoryCalculationStepTooSmall) 437 : : { 438 : 1 : ::ad::rss::world::UnstructuredSettings value; 439 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 440 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 441 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 442 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 443 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 444 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 445 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 446 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 447 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 448 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 449 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 450 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 451 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 452 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 453 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 454 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 455 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 456 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 457 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 458 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 459 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 460 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 461 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 462 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 463 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 464 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 465 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 466 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 467 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 468 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 469 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 470 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 471 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 472 : : 473 : : // override member with data type value below input range minimum 474 : 1 : ::ad::physics::Duration invalidInitializedMember(0. - ::ad::physics::Duration::cPrecisionValue); 475 : 1 : value.vehicleTrajectoryCalculationStep = invalidInitializedMember; 476 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 477 : : } 478 : : 479 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangeVehicleTrajectoryCalculationStepTooBig) 480 : : { 481 : 1 : ::ad::rss::world::UnstructuredSettings value; 482 : 1 : ::ad::physics::Distance valuePedestrianTurningRadius(-1e9); 483 : 1 : value.pedestrianTurningRadius = valuePedestrianTurningRadius; 484 : 1 : ::ad::physics::Angle valueDriveAwayMaxAngle(-6.283185308); 485 : 1 : value.driveAwayMaxAngle = valueDriveAwayMaxAngle; 486 : 1 : ::ad::physics::AngularAcceleration valueVehicleYawRateChange(-1e2); 487 : 1 : value.vehicleYawRateChange = valueVehicleYawRateChange; 488 : 1 : ::ad::physics::Distance valueVehicleMinRadius(-1e9); 489 : 1 : value.vehicleMinRadius = valueVehicleMinRadius; 490 : 1 : ::ad::physics::Duration valueVehicleTrajectoryCalculationStep(0.); 491 : 1 : value.vehicleTrajectoryCalculationStep = valueVehicleTrajectoryCalculationStep; 492 : 1 : uint32_t valueVehicleFrontIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 493 : 1 : value.vehicleFrontIntermediateYawRateChangeRatioSteps = valueVehicleFrontIntermediateYawRateChangeRatioSteps; 494 : 1 : uint32_t valueVehicleBackIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 495 : 1 : value.vehicleBackIntermediateYawRateChangeRatioSteps = valueVehicleBackIntermediateYawRateChangeRatioSteps; 496 : 1 : uint32_t valueVehicleBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 497 : 1 : value.vehicleBrakeIntermediateAccelerationSteps = valueVehicleBrakeIntermediateAccelerationSteps; 498 : 1 : uint32_t valueVehicleContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 499 : 1 : value.vehicleContinueForwardIntermediateAccelerationSteps = valueVehicleContinueForwardIntermediateAccelerationSteps; 500 : 1 : uint32_t valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 501 : : value.vehicleContinueForwardIntermediateYawRateChangeRatioSteps 502 : 1 : = valueVehicleContinueForwardIntermediateYawRateChangeRatioSteps; 503 : 1 : uint32_t valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 504 : : value.pedestrianContinueForwardIntermediateHeadingChangeRatioSteps 505 : 1 : = valuePedestrianContinueForwardIntermediateHeadingChangeRatioSteps; 506 : 1 : uint32_t valuePedestrianContinueForwardIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 507 : : value.pedestrianContinueForwardIntermediateAccelerationSteps 508 : 1 : = valuePedestrianContinueForwardIntermediateAccelerationSteps; 509 : 1 : uint32_t valuePedestrianBrakeIntermediateAccelerationSteps{std::numeric_limits<uint32_t>::min()}; 510 : 1 : value.pedestrianBrakeIntermediateAccelerationSteps = valuePedestrianBrakeIntermediateAccelerationSteps; 511 : 1 : uint32_t valuePedestrianFrontIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 512 : 1 : value.pedestrianFrontIntermediateHeadingChangeRatioSteps = valuePedestrianFrontIntermediateHeadingChangeRatioSteps; 513 : 1 : uint32_t valuePedestrianBackIntermediateHeadingChangeRatioSteps{std::numeric_limits<uint32_t>::min()}; 514 : 1 : value.pedestrianBackIntermediateHeadingChangeRatioSteps = valuePedestrianBackIntermediateHeadingChangeRatioSteps; 515 : : 516 : : // override member with data type value above input range maximum 517 : 1 : ::ad::physics::Duration invalidInitializedMember(1e6 * 1.1); 518 : 1 : value.vehicleTrajectoryCalculationStep = invalidInitializedMember; 519 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 520 : : } 521 : : 522 : 2 : TEST(UnstructuredSettingsValidInputRangeTests, testValidInputRangevehicleTrajectoryCalculationStepDefault) 523 : : { 524 : 1 : ::ad::rss::world::UnstructuredSettings value; 525 : 1 : ::ad::physics::Duration valueDefault; 526 : 1 : value.vehicleTrajectoryCalculationStep = valueDefault; 527 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 528 : : }