I use Ubuntu 12, g ++ and lcov, the latter is installed with apt-get install lcov .
I have successfully compiled and generated html reports using genhtml . The line coverage information looks good, but many feature counts seem weird. For example, one C ++ class containing only a constructor and a virtual destructor tells lcov that it has 7 functions. So my coverage is only 2/7 if I call both during the session.
Here is a sample output that shows a class with one function that is never called. I canโt decide what this function is:
output example
Can someone decode the changed function name, explain the number of bloated functions and suggest how to solve the problem?
Thanks in advance.
Update
OK, since, in answering my initial question below (see comments), I now offer suggestions on how I can prevent these under the hoods and dtors from damaging the coverage statistics of functions. How can I limit the number of functions to the functions that I wrote?
source share