LCOV - code coverage report
Current view: top level - tests/generated/ad/map/restriction - RestrictionListValidInputRangeTests.cpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 16 16 100.0 %
Date: 2022-10-04 09:48:07 Functions: 4 4 100.0 %
Branches: 7 30 23.3 %

           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/RestrictionListValidInputRange.hpp"
      20                 :            : 
      21                 :          2 : TEST(RestrictionListValidInputRangeTests, testValidInputRangeValidInputRangeMin)
      22                 :            : {
      23                 :          1 :   ::ad::map::restriction::RestrictionList value;
      24   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      25                 :            : }
      26                 :            : 
      27                 :          2 : TEST(RestrictionListValidInputRangeTests, testValidInputRangeElementValid)
      28                 :            : {
      29                 :          1 :   ::ad::map::restriction::RestrictionList value;
      30                 :          1 :   ::ad::map::restriction::Restriction element;
      31                 :          1 :   bool elementNegated{true};
      32                 :          1 :   element.negated = elementNegated;
      33                 :          1 :   ::ad::map::restriction::RoadUserTypeList elementRoadUserTypes;
      34                 :          1 :   ::ad::map::restriction::RoadUserType elementRoadUserTypesElement(::ad::map::restriction::RoadUserType::INVALID);
      35         [ +  - ]:          1 :   elementRoadUserTypes.resize(1, elementRoadUserTypesElement);
      36         [ +  - ]:          1 :   element.roadUserTypes = elementRoadUserTypes;
      37                 :          1 :   ::ad::map::restriction::PassengerCount elementPassengersMin(
      38                 :            :     std::numeric_limits<::ad::map::restriction::PassengerCount>::lowest());
      39                 :          1 :   element.passengersMin = elementPassengersMin;
      40         [ +  - ]:          1 :   value.push_back(element);
      41   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      42                 :            : }

Generated by: LCOV version 1.14