ExplainCommand: --id option #127
ci.yaml
on: push
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
3s
Annotations
23 warnings
Coding standard (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 8.2, --ignore-platform-req=php+, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static analysis (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 7.4, --prefer-lowest --prefer-stable, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (ubuntu-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (macos-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (macos-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (macos-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (windows-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Tests (windows-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ExplainCommand.php#L36
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
{
parent::__construct();
$this->scheduler = $scheduler;
- $this->explainer = $explainer ?? new DefaultCronExpressionExplainer();
+ $this->explainer = new DefaultCronExpressionExplainer() ?? $explainer;
$this->clock = $clock ?? new SystemClock();
}
public static function getDefaultName() : string
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ExplainCommand.php#L103
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
{
$timeZone = $jobSchedule->getTimeZone();
$clockTimeZone = $this->clock->now()->getTimezone();
- if ($timeZone === null && $renderedTimeZone->getName() !== $clockTimeZone->getName()) {
+ if ($timeZone !== null && $renderedTimeZone->getName() !== $clockTimeZone->getName()) {
$timeZone = $clockTimeZone;
}
if ($timeZone === null) {
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ExplainCommand.php#L103
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
{
$timeZone = $jobSchedule->getTimeZone();
$clockTimeZone = $this->clock->now()->getTimezone();
- if ($timeZone === null && $renderedTimeZone->getName() !== $clockTimeZone->getName()) {
+ if ($timeZone === null && $renderedTimeZone->getName() === $clockTimeZone->getName()) {
$timeZone = $clockTimeZone;
}
if ($timeZone === null) {
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ExplainCommand.php#L103
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
$timeZone = $jobSchedule->getTimeZone();
$clockTimeZone = $this->clock->now()->getTimezone();
- if ($timeZone === null && $renderedTimeZone->getName() !== $clockTimeZone->getName()) {
+ if ($timeZone === null || $renderedTimeZone->getName() !== $clockTimeZone->getName()) {
$timeZone = $clockTimeZone;
}
if ($timeZone === null) {
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ListCommand.php#L55
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
parent::__construct();
$this->scheduler = $scheduler;
$this->clock = $clock ?? new SystemClock();
- $this->explainer = $explainer ?? new DefaultCronExpressionExplainer();
+ $this->explainer = new DefaultCronExpressionExplainer() ?? $explainer;
}
public static function getDefaultName() : string
{
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ListCommand.php#L233
Escaped Mutant for Mutator "Break_":
--- Original
+++ New
@@ @@
$count = 0;
foreach ($jobSchedules as $key => $value) {
if ($count >= $next) {
- break;
+ continue;
}
$slicedJobs[$key] = $value;
$count++;
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ListCommand.php#L274
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if ($repeatAfterSeconds === 0) {
return $nextDueDate;
}
- $previousDueDate = DateTimeImmutable::createFromMutable($expression->getPreviousRunDate($now, 0, true)->setTimezone($timeZone));
+ $previousDueDate = DateTimeImmutable::createFromMutable($expression->getPreviousRunDate($now, -1, true)->setTimezone($timeZone));
if (!$this->wasPreviousDueDateInCurrentMinute($now, $previousDueDate)) {
return $nextDueDate;
}
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ListCommand.php#L281
Escaped Mutant for Mutator "CastInt":
--- Original
+++ New
@@ @@
if (!$this->wasPreviousDueDateInCurrentMinute($now, $previousDueDate)) {
return $nextDueDate;
}
- $currentSecond = (int) $now->format('s');
+ $currentSecond = $now->format('s');
$runTimes = (int) floor($currentSecond / $repeatAfterSeconds);
$nextRunSecond = ($runTimes + 1) * $repeatAfterSeconds;
// Don't abuse seconds overlap
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ListCommand.php#L282
Escaped Mutant for Mutator "Division":
--- Original
+++ New
@@ @@
return $nextDueDate;
}
$currentSecond = (int) $now->format('s');
- $runTimes = (int) floor($currentSecond / $repeatAfterSeconds);
+ $runTimes = (int) floor($currentSecond * $repeatAfterSeconds);
$nextRunSecond = ($runTimes + 1) * $repeatAfterSeconds;
// Don't abuse seconds overlap
if ($nextRunSecond > 59) {
|
Test for mutants (ubuntu-latest, 8.1):
src/Command/ListCommand.php#L282
Escaped Mutant for Mutator "RoundingFamily":
--- Original
+++ New
@@ @@
return $nextDueDate;
}
$currentSecond = (int) $now->format('s');
- $runTimes = (int) floor($currentSecond / $repeatAfterSeconds);
+ $runTimes = (int) ceil($currentSecond / $repeatAfterSeconds);
$nextRunSecond = ($runTimes + 1) * $repeatAfterSeconds;
// Don't abuse seconds overlap
if ($nextRunSecond > 59) {
|
Tests (windows-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
19.2 KB |
|