Skip to content

Commit fad8cf5

Browse files
committed
Ignore code coverage for CLI entry points
1 parent b25fb71 commit fad8cf5

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/main/php/xp/compiler/AstRunner.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use lang\ast\{Emitter, Errors, Language, Node, Result, Tokens};
44
use util\Objects;
55
use util\cmd\Console;
6+
67
/**
78
* Display AST
89
*
@@ -14,6 +15,8 @@
1415
* ```sh
1516
* $ echo "<?php echo 1;" | xp ast -
1617
* ```
18+
*
19+
* @codeCoverageIgnore
1720
*/
1821
class AstRunner {
1922

src/main/php/xp/compiler/CompileRunner.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* The *-o* and *-n* options accept multiple input sources following them.
3939
* The *-q* option suppresses all diagnostic output except for errors.
4040
*
41+
* @codeCoverageIgnore
4142
* @see https://github.com/xp-framework/rfc/issues/299
4243
*/
4344
class CompileRunner {

src/main/php/xp/compiler/Usage.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use lang\reflect\Package;
55
use util\cmd\Console;
66

7+
/** @codeCoverageIgnore */
78
class Usage {
89
const RUNTIME = 'PHP';
910

0 commit comments

Comments
 (0)