Skip to content

Commit

Permalink
Ingest coverage data only for the files in the filter that actually h…
Browse files Browse the repository at this point in the history
…ave some. Fixes #876
  • Loading branch information
dvdoug committed Oct 27, 2021
1 parent 3ca2f86 commit ac4309d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/PcovDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function stop(): RawCodeCoverageData

$collect = \pcov\collect(
\pcov\inclusive,
!$this->filter->isEmpty() ? $this->filter->files() : \pcov\waiting()
$this->filter->isEmpty() ? \pcov\waiting() : array_intersect(\pcov\waiting(), $this->filter->files())
);

\pcov\clear();
Expand Down

0 comments on commit ac4309d

Please sign in to comment.