fix(codecov): populate branch/condition data in Clover reports - #337
Merged
roxblnfk merged 2 commits intoSep 14, 2026
Merged
Annotations
11 warnings
|
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/mockery/src/Internal/MockeryInterceptor.php#L38
Escaped Mutant for Mutator "UnwrapFinally":
@@ @@
public function runTest(TestInfo $info, callable $next): TestResult
{
$result = null;
+ $result = $this->run($info, $next);
+ # close() clears the container, so read the count first.
+ $verified = \Mockery::getContainer()->mockery_getExpectationCount();
try {
- $result = $this->run($info, $next);
- } finally {
- # close() clears the container, so read the count first.
- $verified = \Mockery::getContainer()->mockery_getExpectationCount();
- try {
- \Mockery::close();
- $verified > 0 and self::reportVerifiedExpectations($verified);
- } catch (\Throwable $e) {
- # Record the unmet expectation on the test, then turn it into a normal failure — an
- # exception escaping here would abort the pipeline (Status::Aborted) instead. Leave an
- # already-failed result alone; a null $result means $next() threw — let it propagate.
- $failure = self::reportFailedExpectation($e);
- $result?->status === Status::Passed and $result = $result
- ->with(status: Status::Failed)
- ->withFailure($failure ?? $e);
- }
+ \Mockery::close();
+ $verified > 0 and self::reportVerifiedExpectations($verified);
+ } catch (\Throwable $e) {
+ # Record the unmet expectation on the test, then turn it into a normal failure — an
+ # exception escaping here would abort the pipeline (Status::Aborted) instead. Leave an
+ # already-failed result alone; a null $result means $next() threw — let it propagate.
+ $failure = self::reportFailedExpectation($e);
+ $result?->status === Status::Passed and $result = $result
+ ->with(status: Status::Failed)
+ ->withFailure($failure ?? $e);
}
return $result;
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L110
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private function run(TestInfo $info, callable $next): TestResult
{
if (\Fiber::getCurrent() === null) {
- return $next($info);
+
}
$fiber = new \Fiber(static fn(): TestResult => $next($info));
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L92
Escaped Mutant for Mutator "NullSafeMethodCall":
@@ @@
: new ExpectationFailed(
expectation: $subject . ' passed its check',
context: '',
- reason: $event->failure?->getMessage() ?? '',
+ reason: $event->failure->getMessage() ?? '',
details: '',
);
}
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L90
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$state->history[] = $event->passed
? new ExpectationFulfilled($subject . ' passed its check', '')
: new ExpectationFailed(
- expectation: $subject . ' passed its check',
+ expectation: $subject,
context: '',
reason: $event->failure?->getMessage() ?? '',
details: '',
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L90
Escaped Mutant for Mutator "Concat":
@@ @@
$state->history[] = $event->passed
? new ExpectationFulfilled($subject . ' passed its check', '')
: new ExpectationFailed(
- expectation: $subject . ' passed its check',
+ expectation: ' passed its check' . $subject,
context: '',
reason: $event->failure?->getMessage() ?? '',
details: '',
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L90
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$state->history[] = $event->passed
? new ExpectationFulfilled($subject . ' passed its check', '')
: new ExpectationFailed(
- expectation: $subject . ' passed its check',
+ expectation: ' passed its check',
context: '',
reason: $event->failure?->getMessage() ?? '',
details: '',
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L88
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
: \sprintf('Double `%s`->%s()', $event->label, $event->method);
$state->history[] = $event->passed
- ? new ExpectationFulfilled($subject . ' passed its check', '')
+ ? new ExpectationFulfilled($subject, '')
: new ExpectationFailed(
expectation: $subject . ' passed its check',
context: '',
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L88
Escaped Mutant for Mutator "Concat":
@@ @@
: \sprintf('Double `%s`->%s()', $event->label, $event->method);
$state->history[] = $event->passed
- ? new ExpectationFulfilled($subject . ' passed its check', '')
+ ? new ExpectationFulfilled(' passed its check' . $subject, '')
: new ExpectationFailed(
expectation: $subject . ' passed its check',
context: '',
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L51
Escaped Mutant for Mutator "NullSafePropertyCall":
@@ @@
# The unmet expectation was already recorded by the listener. Turn it into a normal failure
# here — an exception escaping would abort the pipeline (Status::Aborted) instead. Leave an
# already-failed result alone; a null $result means $next() threw, let it propagate.
- $result?->status === Status::Passed and $result = $result
+ $result->status === Status::Passed and $result = $result
->with(status: Status::Failed)
->withFailure($e);
}
|
|
Run Infection on the PHPUnit mirror:
bridge/double/src/Internal/DoubleInterceptor.php#L42
Escaped Mutant for Mutator "UnwrapFinally":
@@ @@
Double::enableAutoVerify();
$result = null;
+ $result = $this->run($info, $next);
try {
- $result = $this->run($info, $next);
- } finally {
- try {
- Double::verifyAll();
- } catch (\Throwable $e) {
- # The unmet expectation was already recorded by the listener. Turn it into a normal failure
- # here — an exception escaping would abort the pipeline (Status::Aborted) instead. Leave an
- # already-failed result alone; a null $result means $next() threw, let it propagate.
- $result?->status === Status::Passed and $result = $result
- ->with(status: Status::Failed)
- ->withFailure($e);
- }
+ Double::verifyAll();
+ } catch (\Throwable $e) {
+ # The unmet expectation was already recorded by the listener. Turn it into a normal failure
+ # here — an exception escaping would abort the pipeline (Status::Aborted) instead. Leave an
+ # already-failed result alone; a null $result means $next() threw, let it propagate.
+ $result?->status === Status::Passed and $result = $result
+ ->with(status: Status::Failed)
+ ->withFailure($e);
}
return $result;
|
background
wait
wait-all
cancel
parallel
Loading