File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4482,11 +4482,12 @@ sub _synthesize
4482
4482
unless $main::no_sourceview ;
4483
4483
$why = ' not found' ;
4484
4484
} else {
4485
- my $suffix =
4486
- $lcovutil::ignore [$lcovutil::ERROR_RANGE ] ?
4487
- ' ... synthesizing fake content for last ' .
4488
- ($last_line - $currentLast ) . ' lines.' :
4489
- ' ' ;
4485
+ my $suffix = ' ' ;
4486
+ if ($lcovutil::ignore [$lcovutil::ERROR_RANGE ]) {
4487
+ my $num = $last_line - $currentLast ;
4488
+ my $plural = $num == 1 ? ' line' : " $num lines" ;
4489
+ $suffix = ' ... synthesizing fake content for last ' . $plural ;
4490
+ }
4490
4491
lcovutil::ignorable_error($lcovutil::ERROR_RANGE ,
4491
4492
$self -> path() . ' contains only ' . $currentLast .
4492
4493
' lines but coverage data refers to line ' .
You can’t perform that action at this time.
0 commit comments