Skip to content

Commit dd286c6

Browse files
committed
Functionality: implement 'genhtml --select-script ..' callback to
select subset of coverpoints to show in HTML report. The expected use case is code review, when we want to show only the changes caused by a particular commit or set of commits - say, to show the new code as well as any coverage gains or losses outside of the code change. See the '--select-script' section of the genhtml man page, as well as the 'review' section in the 'example' directory. Also modify report generation to indicate regions where baseline code has been deleted. These are show with grey background entries in the 'line number' column of the source detail window. If the mouse hovers over the grey area, a tooltip will appear to summarize the extent of the deletion. Signed-off-by: Henry Cox <henry.cox@mediatek.com>
1 parent 950771e commit dd286c6

File tree

13 files changed

+949
-277
lines changed

13 files changed

+949
-277
lines changed

README

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ New features and capabilities fall into 7 major categories:
238238
and the genhtml man page for details.
239239

240240
Related options:
241-
--baseline-file, --diff-file, --annotate-script, --date-bins,
242-
--new-file-as-baseline, --elide-path-mismtach
241+
--baseline-file, --diff-file, --annotate-script, --select-script
242+
--date-bins, --new-file-as-baseline, --elide-path-mismatch
243243

244244
b) Error handling
245245

@@ -323,6 +323,9 @@ New features and capabilities fall into 7 major categories:
323323
Sample script: criteria
324324
iv) find source files in more complicated environments - where
325325
simple substitutions become complicated or unweildy.
326+
v) select a subset of coverage data to display - e.g., to
327+
use in a code review which wants to concentrate on only
328+
the changes caused by a particular commit or range of commits.
326329

327330
The callback may be any desired script or executable - but there
328331
may be performance advantages if it is written as a Perl module.
@@ -335,7 +338,7 @@ New features and capabilities fall into 7 major categories:
335338

336339
Related options:
337340
--annotate-script, --criteria-script, --version-script
338-
--resolve-script
341+
--resolve-script --select-script
339342

340343
f) Performance
341344

0 commit comments

Comments
 (0)