LCOV - code coverage report
Current view: top level - tests/generated/ad/map/restriction - RestrictionsValidInputRangeTests.cpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 27 27 100.0 %
Date: 2022-10-04 09:48:07 Functions: 2 2 100.0 %
Branches: 9 26 34.6 %

           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/RestrictionsValidInputRange.hpp"
      20                 :            : 
      21                 :          2 : TEST(RestrictionsValidInputRangeTests, testValidInputRange)
      22                 :            : {
      23                 :          1 :   ::ad::map::restriction::Restrictions value;
      24                 :          1 :   ::ad::map::restriction::RestrictionList valueConjunctions;
      25                 :          1 :   ::ad::map::restriction::Restriction valueConjunctionsElement;
      26                 :          1 :   bool valueConjunctionsElementNegated{true};
      27                 :          1 :   valueConjunctionsElement.negated = valueConjunctionsElementNegated;
      28                 :          1 :   ::ad::map::restriction::RoadUserTypeList valueConjunctionsElementRoadUserTypes;
      29                 :          1 :   ::ad::map::restriction::RoadUserType valueConjunctionsElementRoadUserTypesElement(
      30                 :            :     ::ad::map::restriction::RoadUserType::INVALID);
      31         [ +  - ]:          1 :   valueConjunctionsElementRoadUserTypes.resize(1, valueConjunctionsElementRoadUserTypesElement);
      32         [ +  - ]:          1 :   valueConjunctionsElement.roadUserTypes = valueConjunctionsElementRoadUserTypes;
      33                 :          1 :   ::ad::map::restriction::PassengerCount valueConjunctionsElementPassengersMin(
      34                 :            :     std::numeric_limits<::ad::map::restriction::PassengerCount>::lowest());
      35                 :          1 :   valueConjunctionsElement.passengersMin = valueConjunctionsElementPassengersMin;
      36         [ +  - ]:          1 :   valueConjunctions.resize(1, valueConjunctionsElement);
      37         [ +  - ]:          1 :   value.conjunctions = valueConjunctions;
      38                 :          1 :   ::ad::map::restriction::RestrictionList valueDisjunctions;
      39                 :          1 :   ::ad::map::restriction::Restriction valueDisjunctionsElement;
      40                 :          1 :   bool valueDisjunctionsElementNegated{true};
      41                 :          1 :   valueDisjunctionsElement.negated = valueDisjunctionsElementNegated;
      42                 :          1 :   ::ad::map::restriction::RoadUserTypeList valueDisjunctionsElementRoadUserTypes;
      43                 :          1 :   ::ad::map::restriction::RoadUserType valueDisjunctionsElementRoadUserTypesElement(
      44                 :            :     ::ad::map::restriction::RoadUserType::INVALID);
      45         [ +  - ]:          1 :   valueDisjunctionsElementRoadUserTypes.resize(1, valueDisjunctionsElementRoadUserTypesElement);
      46         [ +  - ]:          1 :   valueDisjunctionsElement.roadUserTypes = valueDisjunctionsElementRoadUserTypes;
      47                 :          1 :   ::ad::map::restriction::PassengerCount valueDisjunctionsElementPassengersMin(
      48                 :            :     std::numeric_limits<::ad::map::restriction::PassengerCount>::lowest());
      49                 :          1 :   valueDisjunctionsElement.passengersMin = valueDisjunctionsElementPassengersMin;
      50         [ +  - ]:          1 :   valueDisjunctions.resize(1, valueDisjunctionsElement);
      51         [ +  - ]:          1 :   value.disjunctions = valueDisjunctions;
      52   [ -  +  -  -  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                      - ]
      53                 :            : }

Generated by: LCOV version 1.14