Skip to content

Combining LCOV Trace Files Information #266

Answered by henry2cox
etaylork asked this question in Q&A
Discussion options

You must be logged in to vote

Yes.
Aggregation is essentially a set union operation:

  • for coverpoints which exist in both input data sets, the 'hit; counts are summed
  • for coverpoints which exist in one or the other (but not both) - the (unique) point is added to the result.
    This is legitimate - say, if your data sets reflect different compile options (e.g., #ifdefs or template specializations in your code).

Merging is obviously a problem/will cause misleading results if your input data does not correspond to the same source code version.
lcov will check that for you if you like - see the --version-script and/or --checksum options.
genhtml will use the same --version-script callback to check that the displayed file ma…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by etaylork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants