summaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:31:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:31:21 +0000
commit75531fca871ac1fd11108fa5852490d7a058c96f (patch)
tree6bb5124fbe313f52ab43084c4e5f09fa4088fe70 /build-aux
parentAdding debian version 1.22.7. (diff)
downloaddpkg-75531fca871ac1fd11108fa5852490d7a058c96f.tar.xz
dpkg-75531fca871ac1fd11108fa5852490d7a058c96f.zip
Merging upstream version 1.22.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/lcov-inject13
1 files changed, 7 insertions, 6 deletions
diff --git a/build-aux/lcov-inject b/build-aux/lcov-inject
index 9dd5896..98e9532 100755
--- a/build-aux/lcov-inject
+++ b/build-aux/lcov-inject
@@ -2,7 +2,7 @@
#
# lcov-inject
#
-# Copyright © 2014 Guillem Jover <guillem@debian.org>
+# Copyright © 2014-2024 Guillem Jover <guillem@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -38,7 +38,7 @@ chdir $cwd or die "cannot switch to $cwd\n";
my $s = $db->{summary}{Total};
my $tmpl = sprintf '
- <td class="coverFile"><a href="%s">%s</a></td>
+ <td class="coverDirectory"><a href="%s">%s</a></td>
<td class="coverBar" align="center">
<table border=0 cellspacing=0 cellpadding=1>
<tr><td class="coverBarOutline">%s</td></tr>
@@ -50,10 +50,10 @@ my $tmpl = sprintf '
</tr>
<tr>
', "$dir/coverage.html", $dir, bar_html($s->{total}{percentage}),
- box_html($s->{total}), box_html($s->{subroutine}), box_html($s->{branch});
+ box_html($s->{total}), box_html($s->{branch}), box_html($s->{subroutine});
while (<>) {
- s/^(.*<td .*href="utils\/index\.html">.*)$/$tmpl$1/;
+ s/^(.*<td .*href="utils\/index\.html".*<\/td>.*)$/$tmpl$1/;
print;
}
@@ -91,7 +91,8 @@ sub box_html {
my ($stats) = @_;
return sprintf '<td class="coverPer%s">%.1f&nbsp;%%</td>' . "\n" .
- '<td class="coverNum%s">%d / %d</td>',
+ '<td class="coverNum%s">%d</td>' . "\n" .
+ '<td class="coverNum%s">%d</td>',
box_rating($stats->{percentage}), $stats->{percentage},
- box_rating($stats->{percentage}), $stats->{covered}, $stats->{total};
+ 'Dflt', $stats->{total}, 'Dflt', $stats->{covered};
}