LCOV - code coverage report
Current view: top level - builds/mtusseau/poc-diff-coverage/src - mymath.cpp (source / functions) Hit Total Coverage
Test: lcov-run.info Lines: 5 9 55.6 %
Date: 2019-02-15 00:00:25 Functions: 2 4 50.0 %
Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : #include "mymath.h"
       2                 :            : 
       3                 :            : 
       4                 :          2 : MyMath::MyMath()
       5                 :            : {
       6                 :          2 : }
       7                 :            : 
       8                 :          2 : int MyMath::abs(int x)
       9                 :            : {
      10         [ +  + ]:          2 :     if (x > 0){
      11                 :            :         return x;
      12                 :            :     } else {
      13                 :          1 :         return -x;
      14                 :            :     }
      15                 :            : }
      16                 :            : 
      17                 :          0 : int MyMath::diff(int a, int b)
      18                 :            : {
      19                 :          0 :     return a-b;
      20                 :            : }
      21                 :            : 
      22                 :          0 : std::unique_ptr<File>  MyMath::read(std::string filename)
      23                 :            : {
      24         [ #  # ]:          0 :     return parseFile(filename);
      25                 :            : }

Generated by: LCOV version 1.12