We are currently using gcov with our Linux C ++ testing kit, and it does an excellent job of measuring line coverage.
Can gcov generate a function / method coverage report in addition to line coverage?
Looking at the parameters accepted by gcov, I do not think it is possible, but I can miss something. Or maybe there is another tool that can generate a coverage report of functions / methods from statistics generated by gcc?
Update: By scope of a function / method, I mean the percentage of functions that are performed during the tests.
c ++ unit-testing code-coverage gcov
Dima Malenko
source share