LCOV - code coverage report
Current view: top level - generated/src/ad/physics - SpeedSquared.cpp (source / functions) Hit Total Coverage
Test: ad_physics Lines: 4 4 100.0 %
Date: 2022-10-04 09:47:07 Functions: 1 1 100.0 %
Branches: 2 2 100.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
       3                 :            :  *
       4                 :            :  * Copyright (C) 2018-2020 Intel Corporation
       5                 :            :  *
       6                 :            :  * SPDX-License-Identifier: MIT
       7                 :            :  *
       8                 :            :  * ----------------- END LICENSE BLOCK -----------------------------------
       9                 :            :  */
      10                 :            : 
      11                 :            : /**
      12                 :            :  * Generated file
      13                 :            :  * @file
      14                 :            :  *
      15                 :            :  * Generator Version : 11.0.0-1997
      16                 :            :  */
      17                 :            : 
      18                 :            : #include "ad/physics/SpeedSquared.hpp"
      19                 :            : #include "ad/physics/Speed.hpp"
      20                 :            : 
      21                 :            : /*!
      22                 :            :  * @brief namespace ad
      23                 :            :  */
      24                 :            : namespace ad {
      25                 :            : /*!
      26                 :            :  * @brief namespace physics
      27                 :            :  */
      28                 :            : namespace physics {
      29                 :            : 
      30                 :            : const double SpeedSquared::cMinValue = -1e6;
      31                 :            : 
      32                 :            : const double SpeedSquared::cMaxValue = 1e6;
      33                 :            : 
      34                 :            : const double SpeedSquared::cPrecisionValue = 1e-6;
      35                 :            : 
      36                 :            : } // namespace physics
      37                 :            : } // namespace ad
      38                 :            : namespace std {
      39                 :            : 
      40                 :          2 : ::ad::physics::Speed sqrt(::ad::physics::SpeedSquared const other)
      41                 :            : {
      42                 :          2 :   ::ad::physics::Speed result(std::sqrt(static_cast<double>(other)));
      43         [ +  + ]:          2 :   result.ensureValid();
      44                 :          1 :   return result;
      45                 :            : }
      46                 :            : 
      47                 :            : } // namespace std

Generated by: LCOV version 1.14