From b31f0970825df75366444f3111c94cf9601cfe7a Mon Sep 17 00:00:00 2001 From: Que Yanghua Date: Mon, 13 Sep 2021 04:00:55 +0000 Subject: [PATCH] prevent uncovered classes from showing up in coverage report --- src/CodeCoverage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CodeCoverage.php b/src/CodeCoverage.php index ced3b75df..39b61de2d 100644 --- a/src/CodeCoverage.php +++ b/src/CodeCoverage.php @@ -295,10 +295,6 @@ public function append(array $data, $id = null, bool $append = true, $linesToBeC throw new RuntimeException; } - $this->applyWhitelistFilter($data); - $this->applyIgnoredLinesFilter($data); - $this->initializeFilesThatAreSeenTheFirstTime($data); - if (!$append) { return; } @@ -316,6 +312,10 @@ public function append(array $data, $id = null, bool $append = true, $linesToBeC return; } + $this->applyWhitelistFilter($data); + $this->applyIgnoredLinesFilter($data); + $this->initializeFilesThatAreSeenTheFirstTime($data); + $size = 'unknown'; $status = -1;