fix(codecov): leave eval()'d code out of coverage - #379
Merged
Merged
Annotations
11 warnings and 1 notice
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L86
Escaped Mutant for Mutator "FalseValue":
@@ @@
private static function recordAmbiguity(\Throwable $e): void
{
($e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException)
- and self::record(new CheckEvent($e->label, method: null, passed: false, failure: $e));
+ and self::record(new CheckEvent($e->label, method: null, passed: true, failure: $e));
}
private static function record(CheckEvent $event): void
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L85
Escaped Mutant for Mutator "LogicalLowerAnd":
@@ @@
private static function recordAmbiguity(\Throwable $e): void
{
- ($e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException)
- and self::record(new CheckEvent($e->label, method: null, passed: false, failure: $e));
+ $e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException or self::record(new CheckEvent($e->label, method: null, passed: false, failure: $e));
}
private static function record(CheckEvent $event): void
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L85
Escaped Mutant for Mutator "LogicalOrNegation":
@@ @@
private static function recordAmbiguity(\Throwable $e): void
{
- ($e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException)
+ (!($e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException))
and self::record(new CheckEvent($e->label, method: null, passed: false, failure: $e));
}
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L85
Escaped Mutant for Mutator "LogicalOr":
@@ @@
private static function recordAmbiguity(\Throwable $e): void
{
- ($e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException)
+ ($e instanceof AmbiguousExpectationException && $e instanceof PHPUnitAmbiguousExpectationException)
and self::record(new CheckEvent($e->label, method: null, passed: false, failure: $e));
}
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L85
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
@@ @@
private static function recordAmbiguity(\Throwable $e): void
{
- ($e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException)
+ (!$e instanceof AmbiguousExpectationException || !$e instanceof PHPUnitAmbiguousExpectationException)
and self::record(new CheckEvent($e->label, method: null, passed: false, failure: $e));
}
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L85
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
private static function recordAmbiguity(\Throwable $e): void
{
- ($e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException)
+ ($e instanceof AmbiguousExpectationException || !$e instanceof PHPUnitAmbiguousExpectationException)
and self::record(new CheckEvent($e->label, method: null, passed: false, failure: $e));
}
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L85
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
private static function recordAmbiguity(\Throwable $e): void
{
- ($e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException)
+ (!$e instanceof AmbiguousExpectationException || $e instanceof PHPUnitAmbiguousExpectationException)
and self::record(new CheckEvent($e->label, method: null, passed: false, failure: $e));
}
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L56
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
# failed here. An already-failed test keeps its own failure: only an ambiguous expectation
# is left to report, and Double emits no check event for it, so it is recorded by hand.
if ($failed) {
- self::recordAmbiguity($e);
+
} else {
\assert($result !== null);
$result = $result->with(status: Status::Failed)->withFailure($e);
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L48
Escaped Mutant for Mutator "NullSafePropertyCall":
@@ @@
$result = $this->run($info, $next);
} finally {
# A null $result means $next() threw; that exception keeps propagating.
- $failed = $result?->status !== Status::Passed;
+ $failed = $result->status !== Status::Passed;
try {
Double::verifyAll(testFailed: $failed);
} catch (\Throwable $e) {
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L44
Escaped Mutant for Mutator "UnwrapFinally":
@@ @@
Double::enableAutoVerify();
$result = null;
+ $result = $this->run($info, $next);
+ # A null $result means $next() threw; that exception keeps propagating.
+ $failed = $result?->status !== Status::Passed;
try {
- $result = $this->run($info, $next);
- } finally {
- # A null $result means $next() threw; that exception keeps propagating.
- $failed = $result?->status !== Status::Passed;
- try {
- Double::verifyAll(testFailed: $failed);
- } catch (\Throwable $e) {
- # An exception escaping would abort the pipeline (Status::Aborted), so a passed test turns
- # failed here. An already-failed test keeps its own failure: only an ambiguous expectation
- # is left to report, and Double emits no check event for it, so it is recorded by hand.
- if ($failed) {
- self::recordAmbiguity($e);
- } else {
- \assert($result !== null);
- $result = $result->with(status: Status::Failed)->withFailure($e);
- }
+ Double::verifyAll(testFailed: $failed);
+ } catch (\Throwable $e) {
+ # An exception escaping would abort the pipeline (Status::Aborted), so a passed test turns
+ # failed here. An already-failed test keeps its own failure: only an ambiguous expectation
+ # is left to report, and Double emits no check event for it, so it is recorded by hand.
+ if ($failed) {
+ self::recordAmbiguity($e);
+ } else {
+ \assert($result !== null);
+ $result = $result->with(status: Status::Failed)->withFailure($e);
}
}
|
|
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|
background
wait
wait-all
cancel
parallel
Loading