Skip to content

Commit 301f25d

Browse files
committed
Fix coverage unnecessary files and functions to cover
1 parent 0561989 commit 301f25d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@
1919
<include>
2020
<directory>src</directory>
2121
</include>
22+
<exclude>
23+
<file>src/Terremoth/Async/background_processor.php</file>
24+
</exclude>
2225
</source>
2326
</phpunit>

src/Terremoth/Async/script_functions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace Terremoth\Async;
44

5+
/**
6+
* @codeCoverageIgnore
7+
* @codeCoverageIgnoreStart
8+
*/
59
function customError(string $error): void
610
{
711
$error = 'Error: ' . $error;

0 commit comments

Comments
 (0)