Skip to content

Commit f4384f1

Browse files
Ignore code from code coverage that cannot be covered as it is only executed when code coverage data is not collected
1 parent 4163491 commit f4384f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Driver/PcovDriver.php

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function __construct(Filter $filter)
3838
$this->filter = $filter;
3939
}
4040

41+
/**
42+
* @codeCoverageIgnore
43+
*/
4144
public function start(): void
4245
{
4346
start();
@@ -47,6 +50,7 @@ public function stop(): RawCodeCoverageData
4750
{
4851
stop();
4952

53+
// @codeCoverageIgnoreStart
5054
$filesToCollectCoverageFor = waiting();
5155
$collected = [];
5256

@@ -61,6 +65,7 @@ public function stop(): RawCodeCoverageData
6165
}
6266

6367
return RawCodeCoverageData::fromXdebugWithoutPathCoverage($collected);
68+
// @codeCoverageIgnoreEnd
6469
}
6570

6671
public function nameAndVersion(): string

0 commit comments

Comments
 (0)