LCOV - code coverage report
Current view: top level - generated/src/ad/physics - Duration.cpp (source / functions) Hit Total Coverage
Test: ad_physics Lines: 6 6 100.0 %
Date: 2022-10-04 09:47:07 Functions: 1 1 100.0 %
Branches: 4 4 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/Duration.hpp"
      19                 :            : #include "ad/physics/DurationSquared.hpp"
      20                 :            : 
      21                 :            : /*!
      22                 :            :  * @brief namespace ad
      23                 :            :  */
      24                 :            : namespace ad {
      25                 :            : /*!
      26                 :            :  * @brief namespace physics
      27                 :            :  */
      28                 :            : namespace physics {
      29                 :            : 
      30                 :            : const double Duration::cMinValue = -1e6;
      31                 :            : 
      32                 :            : const double Duration::cMaxValue = 1e6;
      33                 :            : 
      34                 :            : const double Duration::cPrecisionValue = 1e-3;
      35                 :            : 
      36                 :            : } // namespace physics
      37                 :            : } // namespace ad
      38                 :            : /*!
      39                 :            :  * @brief namespace ad
      40                 :            :  */
      41                 :            : namespace ad {
      42                 :            : /*!
      43                 :            :  * @brief namespace physics
      44                 :            :  */
      45                 :            : namespace physics {
      46                 :            : 
      47                 :          3 : ::ad::physics::DurationSquared Duration::operator*(const Duration &other) const
      48                 :            : {
      49         [ +  + ]:          3 :   ensureValid();
      50         [ +  + ]:          2 :   other.ensureValid();
      51                 :          1 :   ::ad::physics::DurationSquared const result(mDuration * other.mDuration);
      52                 :          1 :   result.ensureValid(); // LCOV_EXCL_BR_LINE On correct definition of squarerooted type, this cannot not happen
      53                 :          1 :   return result;
      54                 :            : }
      55                 :            : 
      56                 :            : } // namespace physics
      57                 :            : } // namespace ad

Generated by: LCOV version 1.14