Skip to content

Commit 8177a53

Browse files
authored
Consider no lines a valid input, (#73)
and output a valid result. Fixes #72
1 parent cdda0be commit 8177a53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/functions.php

+6
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ function handleOutput(array $lines, float $minimumPercentCovered, Output $output
9292

9393
if ($coveredLines + $uncoveredLines == 0) {
9494
error_log('No lines found!');
95+
96+
$output->output(
97+
$lines['uncoveredLines'],
98+
100,
99+
$minimumPercentCovered
100+
);
95101
return;
96102
}
97103

0 commit comments

Comments
 (0)