Skip to content

Commit a606214

Browse files
committed
fixes #1
1 parent 849efd8 commit a606214

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/VIPSoft/CodeCoverageCommon/Model/Aggregate.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public function update($class, $counts)
4444

4545
foreach ($counts as $line => $status) {
4646
if ( ! isset($this->coverage[$class][$line]) || $status > 0) {
47+
// converts "hits" to "status"
48+
$status = ! $status ? -1 : ($status > 1 ? 1 : $status);
49+
4750
$this->coverage[$class][$line] = $status;
4851
}
4952
}

0 commit comments

Comments
 (0)