LCOV - code coverage report
Current view: top level - tests/generated/ad/map/lane - ContactLocationListValidInputRangeTests.cpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 13 13 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/lane/ContactLocationListValidInputRange.hpp"
      20                 :            : 
      21                 :          2 : TEST(ContactLocationListValidInputRangeTests, testValidInputRangeValidInputRangeMin)
      22                 :            : {
      23                 :          1 :   ::ad::map::lane::ContactLocationList value;
      24   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      25                 :            : }
      26                 :            : 
      27                 :          2 : TEST(ContactLocationListValidInputRangeTests, testValidInputRangeElementValid)
      28                 :            : {
      29                 :          1 :   ::ad::map::lane::ContactLocationList value;
      30                 :          1 :   ::ad::map::lane::ContactLocation element(::ad::map::lane::ContactLocation::INVALID);
      31         [ +  - ]:          1 :   value.push_back(element);
      32   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      33                 :            : }
      34                 :            : 
      35                 :          2 : TEST(ContactLocationListValidInputRangeTests, testValidInputRangeElementInvalid)
      36                 :            : {
      37                 :          1 :   ::ad::map::lane::ContactLocationList value;
      38                 :          1 :   ::ad::map::lane::ContactLocation element(static_cast<::ad::map::lane::ContactLocation>(-1));
      39         [ +  - ]:          1 :   value.push_back(element);
      40   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      41                 :            : }

Generated by: LCOV version 1.14