LCOV - code coverage report
Current view: top level - tests/situation - VehicleTests.cpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 6 6 100.0 %
Date: 2024-04-30 13:12:49 Functions: 4 4 100.0 %
Branches: 6 28 21.4 %

           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/situation/VehicleStateValidInputRange.hpp"
      11                 :            : 
      12                 :            : namespace ad {
      13                 :            : namespace rss {
      14                 :            : namespace situation {
      15                 :            : 
      16                 :          2 : TEST(RssFormulaTestsCheckVehicleState, check_standard_state)
      17                 :            : {
      18         [ +  - ]:          1 :   VehicleState leadingVehicle = createVehicleStateForLongitudinalMotion(10);
      19                 :            : 
      20   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(leadingVehicle));
          -  -  -  -  -  
                -  -  - ]
      21                 :            : }
      22                 :            : 
      23                 :          2 : TEST(RssFormulaTestsCheckVehicleState, check_standard_state_100)
      24                 :            : {
      25         [ +  - ]:          1 :   VehicleState leadingVehicle = createVehicleStateForLongitudinalMotion(100);
      26                 :            : 
      27   [ +  -  -  +  :          1 :   ASSERT_TRUE(withinValidInputRange(leadingVehicle));
          -  -  -  -  -  
                -  -  - ]
      28                 :            : }
      29                 :            : 
      30                 :            : } // namespace situation
      31                 :            : } // namespace rss
      32                 :            : } // namespace ad

Generated by: LCOV version 1.14