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 sebastianbergmann#876
  • Loading branch information
dvdoug committed Oct 27, 2021
1 parent 7cecb7b commit deb3d57
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 deb3d57

Please sign in to comment.