-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to interpret the format of lcov output file? #113
Comments
Easiest way to figure it out is to look at the parse code.
There are some (moderately readable?) comments in the ‘lcovutil.pm’ library (in my version of lcov).
TN: test name
SF: source file path
FN: line number,function name
FNF: number functions found
FNH: number hit
BRDA: branch data: line, block, (expressions,count)+
BRF: branches found
DA: line number, hit count
LF: lines found
LH: lines hit.
Henry
|
So the format is per test, right? Like the same source file path can be included multiple times for different tests? |
Right.
This is how you get to the ‘per testcase’ views from genhtml, for example.
(Note, though, that the source code view, various of the date/author binning tables, etc – are all computed from the combined coverage over all the testcases.)
Henry
|
Where is this Is there the date/author info in the LCOV output? I found some files from 2015 and there isn't https://dev-builds.libreoffice.org/lcov_reports/master-2015-06-10_23.49.39/UnoControls/source/base/basecontrol.cxx.gcov.html |
My fork: https://github.com/henry2cox/lcov/tree/diffcov_initial, then “./lib/lcovutil.pm”.
This version implements a lot of new features compared to base lcov. Those enhancements are (mostly) described in the corresponding pull request.
If you are specifically interested in the .info file syntax, then please note that this code treats branch coverage expressions slightly differently than base lcov (…because we enhanced things to handle Verilog code; the main bits of the Verilog implementation are not in this repo).
Henry
|
I'm in the process of trying to clean up the issue list. Please reopen this issue if you feel that something is missing. |
Although I would appreciate a formal versioned specification of the format, which can be answer more questions for people who are not able to read the Perl code, I see no reasons to keep this issue open. |
Is the format at the bottom of the page helpful? https://ltp.sourceforge.net/coverage/lcov/geninfo.1.php |
@gohar94 not really.
Questions not answered.
Extensions needed.
|
FWIW:
|
@henry2cox that's why it is a bad specification of the format. |
What does each line of the lcov output file mean?
This is a repost of linux-test-project/ltp#113 by @benquike
The text was updated successfully, but these errors were encountered: