LCOV/GCOV are reporting weird branch coverage (conditional coverage) results when used with c++.
We suspect these weird branch reports come from internal exception wrappers/handlers. But shouldn't interfere with "high level" coverage reports.
- Line 6: printf() creating a branch? How to take the other one?
- Line 9: Correct, both branches taken
- Line 16-21: Branches, all over the place? How to take these other branches?
You need to install gcov, lcov and genhtml on your system.
Your g++ needs to support "--coverage".
- Clone the repo
- Navigate into your cloned repo
- make
- Inspect the coverage report in "./generated-coverage/index.html"