LCOV - code coverage report
Current view: top level - tests/generated/ad/map/match - LaneOccupiedRegionListValidInputRangeTests.cpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 35 35 100.0 %
Date: 2022-10-04 09:48:07 Functions: 6 6 100.0 %
Branches: 8 40 20.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: 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/match/LaneOccupiedRegionListValidInputRange.hpp"
      20                 :            : 
      21                 :          2 : TEST(LaneOccupiedRegionListValidInputRangeTests, testValidInputRangeValidInputRangeMin)
      22                 :            : {
      23                 :          1 :   ::ad::map::match::LaneOccupiedRegionList value;
      24   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      25                 :            : }
      26                 :            : 
      27                 :          2 : TEST(LaneOccupiedRegionListValidInputRangeTests, testValidInputRangeElementValid)
      28                 :            : {
      29                 :          1 :   ::ad::map::match::LaneOccupiedRegionList value;
      30                 :          1 :   ::ad::map::match::LaneOccupiedRegion element;
      31                 :          1 :   ::ad::map::lane::LaneId elementLaneId(1);
      32                 :          1 :   element.laneId = elementLaneId;
      33                 :          1 :   ::ad::physics::ParametricRange elementLongitudinalRange;
      34                 :          1 :   ::ad::physics::ParametricValue elementLongitudinalRangeMinimum(0.);
      35                 :          1 :   elementLongitudinalRange.minimum = elementLongitudinalRangeMinimum;
      36                 :          1 :   ::ad::physics::ParametricValue elementLongitudinalRangeMaximum(0.);
      37                 :          1 :   elementLongitudinalRange.maximum = elementLongitudinalRangeMaximum;
      38                 :          1 :   elementLongitudinalRange.maximum = elementLongitudinalRange.minimum;
      39                 :          1 :   elementLongitudinalRange.minimum = elementLongitudinalRange.maximum;
      40                 :          1 :   element.longitudinalRange = elementLongitudinalRange;
      41                 :          1 :   ::ad::physics::ParametricRange elementLateralRange;
      42                 :          1 :   ::ad::physics::ParametricValue elementLateralRangeMinimum(0.);
      43                 :          1 :   elementLateralRange.minimum = elementLateralRangeMinimum;
      44                 :          1 :   ::ad::physics::ParametricValue elementLateralRangeMaximum(0.);
      45                 :          1 :   elementLateralRange.maximum = elementLateralRangeMaximum;
      46                 :          1 :   elementLateralRange.maximum = elementLateralRange.minimum;
      47                 :          1 :   elementLateralRange.minimum = elementLateralRange.maximum;
      48                 :          1 :   element.lateralRange = elementLateralRange;
      49         [ +  - ]:          1 :   value.push_back(element);
      50   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      51                 :            : }
      52                 :            : 
      53                 :          2 : TEST(LaneOccupiedRegionListValidInputRangeTests, testValidInputRangeElementInvalid)
      54                 :            : {
      55                 :          1 :   ::ad::map::match::LaneOccupiedRegionList value;
      56                 :          1 :   ::ad::map::match::LaneOccupiedRegion element;
      57                 :          1 :   ::ad::physics::ParametricRange elementLongitudinalRange;
      58                 :          1 :   ::ad::physics::ParametricValue elementLongitudinalRangeMinimum(0. - ::ad::physics::ParametricValue::cPrecisionValue);
      59                 :          1 :   elementLongitudinalRange.minimum = elementLongitudinalRangeMinimum;
      60                 :          1 :   element.longitudinalRange = elementLongitudinalRange;
      61         [ +  - ]:          1 :   value.push_back(element);
      62   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      63                 :            : }

Generated by: LCOV version 1.14