Branch data Line data Source code
1 : : /* 2 : : * ----------------- BEGIN LICENSE BLOCK --------------------------------- 3 : : * 4 : : * Copyright (C) 2018-2021 Intel Corporation 5 : : * 6 : : * SPDX-License-Identifier: MIT 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/map/restriction/RestrictionValidInputRange.hpp" 20 : : 21 : 2 : TEST(RestrictionValidInputRangeTests, testValidInputRange) 22 : : { 23 : 1 : ::ad::map::restriction::Restriction value; 24 : 1 : bool valueNegated{true}; 25 : 1 : value.negated = valueNegated; 26 : 1 : ::ad::map::restriction::RoadUserTypeList valueRoadUserTypes; 27 : 1 : ::ad::map::restriction::RoadUserType valueRoadUserTypesElement(::ad::map::restriction::RoadUserType::INVALID); 28 [ + - ]: 1 : valueRoadUserTypes.resize(1, valueRoadUserTypesElement); 29 [ + - ]: 1 : value.roadUserTypes = valueRoadUserTypes; 30 : 1 : ::ad::map::restriction::PassengerCount valuePassengersMin( 31 : : std::numeric_limits<::ad::map::restriction::PassengerCount>::lowest()); 32 : 1 : value.passengersMin = valuePassengersMin; 33 [ - + - - : 1 : ASSERT_TRUE(withinValidInputRange(value)); - - - - - - ] 34 : : }