Skip to content

Commit 13c8b72

Browse files
committed
Tidy up CodeCoverage changes
1 parent 89ca8a3 commit 13c8b72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CodeCoverage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function append(array $data, $id = null, bool $append = true, $linesToBeC
355355

356356
foreach ($fileData['lines'] as $line => $lineCoverage) {
357357
if ($lineCoverage === Driver::LINE_EXECUTED) {
358-
$this->addCoverageLinePathCovered($file, $line, false);
358+
$this->addCoverageLinePathCovered($file, $line, true);
359359
$this->addCoverageLineTest($file, $line, $id);
360360
}
361361
}
@@ -837,6 +837,7 @@ private function addUncoveredFilesFromWhitelist(): void
837837
for ($line = 1; $line <= $lines; $line++) {
838838
$data[$uncoveredFile]['lines'][$line] = Driver::LINE_NOT_EXECUTED;
839839
}
840+
// @todo - do the same here with functions and paths
840841
}
841842

842843
$this->append($data, 'UNCOVERED_FILES_FROM_WHITELIST');

0 commit comments

Comments
 (0)