Skip to content

Commit 67c1d8c

Browse files
committed
Tidy up CodeCoverage changes
1 parent 12baaf6 commit 67c1d8c

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
@@ -354,7 +354,7 @@ public function append(array $data, $id = null, bool $append = true, $linesToBeC
354354

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

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

0 commit comments

Comments
 (0)