GCC Code Coverage Report


Directory: exclude-line-branch/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 0 / 4 / 4
Functions: -% 0 / 1 / 1
Branches: -% 0 / 2 / 2
Conditions: -% 0 / 2 / 2

bar.cpp
Line Branch Condition Exec Source
1
2 class Bar
3 {
4 public:
5 Bar() : m_param(1)
6 {}
7 virtual ~Bar()
8 {} // possible compiler-generated destruction code - auto-detected and excluded
9
10 private:
11 int m_param;
12 };
13
14 int bar(int param) { // never called, GCOV_EXCL_START
15 if (param) {
16 return 1;
17 }
18 return 0;
19 } // GCOV_EXCL_STOP
20