LCOV - code coverage report
Current view: top level - tests/generated/ad/map/point - ENUEdgeValidInputRangeTests.cpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 21 21 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/point/ENUEdgeValidInputRange.hpp"
      20                 :            : 
      21                 :          2 : TEST(ENUEdgeValidInputRangeTests, testValidInputRangeValidInputRangeMin)
      22                 :            : {
      23                 :          1 :   ::ad::map::point::ENUEdge value;
      24   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      25                 :            : }
      26                 :            : 
      27                 :          2 : TEST(ENUEdgeValidInputRangeTests, testValidInputRangeElementValid)
      28                 :            : {
      29                 :          1 :   ::ad::map::point::ENUEdge value;
      30                 :          1 :   ::ad::map::point::ENUPoint element;
      31                 :          1 :   ::ad::map::point::ENUCoordinate elementX(-16384);
      32                 :          1 :   element.x = elementX;
      33                 :          1 :   ::ad::map::point::ENUCoordinate elementY(-16384);
      34                 :          1 :   element.y = elementY;
      35                 :          1 :   ::ad::map::point::ENUCoordinate elementZ(-16384);
      36                 :          1 :   element.z = elementZ;
      37         [ +  - ]:          1 :   value.push_back(element);
      38   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      39                 :            : }
      40                 :            : 
      41                 :          2 : TEST(ENUEdgeValidInputRangeTests, testValidInputRangeElementInvalid)
      42                 :            : {
      43                 :          1 :   ::ad::map::point::ENUEdge value;
      44                 :          1 :   ::ad::map::point::ENUPoint element;
      45                 :          1 :   ::ad::map::point::ENUCoordinate elementX(-16384 * 1.1);
      46                 :          1 :   element.x = elementX;
      47         [ +  - ]:          1 :   value.push_back(element);
      48   [ +  -  -  +  :          1 :   ASSERT_FALSE(withinValidInputRange(value));
          -  -  -  -  -  
                -  -  - ]
      49                 :            : }

Generated by: LCOV version 1.14