LCOV - code coverage report
Current view: top level - tests/test_support - CreateRelativeVehicleStateForLongitudinalMotionTests.cpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 6 6 100.0 %
Date: 2025-07-22 06:53:46 Functions: 6 6 100.0 %
Branches: 8 32 25.0 %

           Branch data     Line data    Source code
       1                 :            : // ----------------- BEGIN LICENSE BLOCK ---------------------------------
       2                 :            : //
       3                 :            : // Copyright (C) 2018-2021 Intel Corporation
       4                 :            : //
       5                 :            : // SPDX-License-Identifier: LGPL-2.1-only
       6                 :            : //
       7                 :            : // ----------------- END LICENSE BLOCK -----------------------------------
       8                 :            : 
       9                 :            : #include "TestSupport.hpp"
      10                 :            : #include "ad/rss/core/RelativeObjectStateValidInputRange.hpp"
      11                 :            : 
      12                 :            : namespace ad {
      13                 :            : namespace rss {
      14                 :            : 
      15                 :          4 : TEST(CreateRelativeVehicleStateForLongitudinalMotion, check_standard_state)
      16                 :            : {
      17         [ +  - ]:          1 :   auto leadingVehicle = createRelativeVehicleStateForLongitudinalMotion(10);
      18                 :            : 
      19   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(leadingVehicle));
          -  -  -  -  -  
             -  -  -  +  
                      - ]
      20                 :            : }
      21                 :            : 
      22                 :          4 : TEST(CreateRelativeVehicleStateForLongitudinalMotion, check_standard_state_100)
      23                 :            : {
      24         [ +  - ]:          1 :   auto leadingVehicle = createRelativeVehicleStateForLongitudinalMotion(100);
      25                 :            : 
      26   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(leadingVehicle));
          -  -  -  -  -  
             -  -  -  +  
                      - ]
      27                 :            : }
      28                 :            : 
      29                 :            : } // namespace rss
      30                 :            : } // namespace ad

Generated by: LCOV version 1.14