i\'m trying to use lcov for code coverage metrics, but I cannot get branches coverage to work.
Here\'s how i\'m using it:
g++ -ggdb3 --coverage src/read.
.lcovrc files is file of settings that need to place in path of lcov file. Frankly, I didn't research much on use of this file.
You need to add additional parameter as "--rc lcov_branch_coverage=1" to lcov for all calls. In your case add this parameter to all your three calls. If you miss one, it will drop branch coverage.
Also --branch-coverage is needed for genhtml.