From 73d83372ecc1cfc9458fdfdd4bfc591fbe860bca Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Aug 2024 15:31:20 +0200 Subject: Adding upstream version 1.22.8. Signed-off-by: Daniel Baumann --- build-aux/lcov-inject | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'build-aux') 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 +# Copyright © 2014-2024 Guillem Jover # # 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 ' - %s + %s @@ -50,10 +50,10 @@ my $tmpl = sprintf ' ', "$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/^(.*' . "\n" . - '', + '' . "\n" . + '', box_rating($stats->{percentage}), $stats->{percentage}, - box_rating($stats->{percentage}), $stats->{covered}, $stats->{total}; + 'Dflt', $stats->{total}, 'Dflt', $stats->{covered}; } -- cgit v1.2.3
%s
.*)$/$tmpl$1/; + s/^(.*.*)$/$tmpl$1/; print; } @@ -91,7 +91,8 @@ sub box_html { my ($stats) = @_; return sprintf '%.1f %%%d / %d%d%d