We are using gcov and gcovr.py to get coverage reports for our tests. Not all the source files are tested at all and therefore those aren't mentioned in gcovr report. Now I'd like to calculate overall coverage for whole code base nevertheless.
From the reports I can get lines covered but I'd also need to get number of C code lines in those files which aren't tested. What would be the possibilities to to get lines of C code in files inside code directory?
Have a look at cloc, which will count lines of code in files or process a directory: https://github.com/AlDanial/cloc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With