LCOV - code coverage report
Current view: top level - package1/src - package1.cpp (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 13 17 76.5 %
Date: 2024-10-03 03:00:03 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 5 8 62.5 %

           Branch data     Line data    Source code
       1                 :            : #include "package1/package1.hpp"
       2                 :            : 
       3                 :          2 : int func(bool condition_a, bool condition_b, bool condition_c) {
       4                 :          2 :   int count = 0;
       5         [ +  - ]:          2 :   if (condition_a) {
       6                 :          2 :     count++;
       7                 :            :   } else {
       8                 :          0 :     count--;
       9                 :            :   }
      10         [ +  + ]:          2 :   if (condition_b) {
      11                 :          1 :     count++;
      12                 :            :   } else {
      13                 :          1 :     count--;
      14                 :            :   }
      15         [ -  + ]:          2 :   if (condition_c) {
      16                 :          0 :     count++;
      17                 :            :   } else {
      18                 :          2 :     count--;
      19                 :            :   }
      20                 :          2 :   return count;
      21                 :            : }
      22                 :            : 
      23                 :          1 : std::string add_world(std::string input) {
      24         [ +  - ]:          1 :   if (input == "hello") {
      25                 :          1 :     return input + " world!";
      26                 :            :   } else {
      27                 :          0 :     input += "!";
      28                 :            :   }
      29                 :          0 :   return input;
      30                 :            : }

Generated by: LCOV version 1.14