LCOV - code coverage report
Current view: top level - src - mymath.cpp (source / functions) Hit Total Coverage
Test: lcov-run.info Lines: 5 5 100.0 %
Date: 2019-01-27 15:36:45 Functions: 2 2 100.0 %
Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : #include "mymath.h"
       2                 :            : 
       3                 :            : 
       4                 :          1 : MyMath::MyMath()
       5                 :            : {
       6                 :          1 : }
       7                 :            : 
       8                 :          1 : int MyMath::abs(int x)
       9                 :            : {
      10         [ +  - ]:          1 :     if (x > 0){
      11                 :            :         return x;
      12                 :            :     } else {
      13                 :          1 :         return -x;
      14                 :            :     }
      15                 :            : }

Generated by: LCOV version 1.12