Skip to content
Triggered via schedule September 30, 2024 08:17
Status Success
Total duration 2m 28s
Artifacts 1

ci.yaml

on: schedule
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
2s
Status check - CI
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Test for mutants (ubuntu-latest, 8.3): src/Command/BaseExplainCommand.php#L26
Escaped Mutant for Mutator "Coalesce": @@ @@ protected ClockInterface $clock; public function __construct(?CronExpressionExplainer $explainer, ?ClockInterface $clock) { - $this->explainer = $explainer ?? new DefaultCronExpressionExplainer(); + $this->explainer = new DefaultCronExpressionExplainer() ?? $explainer; $this->clock = $clock ?? new SystemClock(); parent::__construct(); }
Test for mutants (ubuntu-latest, 8.3): src/Command/BaseExplainCommand.php#L36
Escaped Mutant for Mutator "Foreach_": @@ @@ $string = ''; $locales = $this->explainer->getSupportedLocales(); $last = array_key_last($locales); - foreach ($locales as $code => $name) { + foreach ([] as $code => $name) { $string .= "{$code} ({$name})"; if ($code !== $last) { $string .= ', ';
Test for mutants (ubuntu-latest, 8.3): src/Command/BaseExplainCommand.php#L37
Escaped Mutant for Mutator "Assignment": @@ @@ $locales = $this->explainer->getSupportedLocales(); $last = array_key_last($locales); foreach ($locales as $code => $name) { - $string .= "{$code} ({$name})"; + $string = "{$code} ({$name})"; if ($code !== $last) { $string .= ', '; }
Test for mutants (ubuntu-latest, 8.3): src/Command/BaseExplainCommand.php#L38
Escaped Mutant for Mutator "NotIdentical": @@ @@ $last = array_key_last($locales); foreach ($locales as $code => $name) { $string .= "{$code} ({$name})"; - if ($code !== $last) { + if ($code === $last) { $string .= ', '; } }
Test for mutants (ubuntu-latest, 8.3): src/Command/BaseExplainCommand.php#L39
Escaped Mutant for Mutator "Assignment": @@ @@ foreach ($locales as $code => $name) { $string .= "{$code} ({$name})"; if ($code !== $last) { - $string .= ', '; + $string = ', '; } } return $string;
Test for mutants (ubuntu-latest, 8.3): src/Command/ExplainCommand.php#L93
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": @@ @@ { $hasErrors = false; $id = $input->getOption('id'); - assert(is_string($id) || $id === null); + assert(!is_string($id) || !($id === null)); $expression = $input->getOption('expression'); assert(is_string($expression) || $expression === null); if ($id !== null && $expression !== null) {
Test for mutants (ubuntu-latest, 8.3): src/Command/ExplainCommand.php#L96
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": @@ @@ $id = $input->getOption('id'); assert(is_string($id) || $id === null); $expression = $input->getOption('expression'); - assert(is_string($expression) || $expression === null); + assert(!is_string($expression) || !($expression === null)); if ($id !== null && $expression !== null) { $hasErrors = true; $output->writeln('<error>Options --id and --expression cannot be combined.</error>');
Test for mutants (ubuntu-latest, 8.3): src/Command/ExplainCommand.php#L104
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": @@ @@ $output->writeln('<error>Options --id and --expression cannot be combined.</error>'); } $seconds = $input->getOption('seconds'); - assert(is_string($seconds) || $seconds === null); + assert(!is_string($seconds) || !($seconds === null)); if ($seconds !== null) { if (preg_match('#^[+-]?[0-9]+$#D', $seconds) !== 1 || ($seconds = (int) $seconds) < 0 || $seconds > 59) { $hasErrors = true;
Test for mutants (ubuntu-latest, 8.3): src/Command/ExplainCommand.php#L123
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": @@ @@ } } $timezone = $input->getOption('timezone'); - assert(is_string($timezone) || $timezone === null); + assert(!is_string($timezone) || !($timezone === null)); if ($timezone !== null) { if (!in_array($timezone, timezone_identifiers_list(), true)) { $hasErrors = true;
Test for mutants (ubuntu-latest, 8.3): src/Command/ExplainCommand.php#L139
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": @@ @@ } } $locale = $input->getOption('locale'); - assert($locale === null || is_string($locale)); + assert(!($locale === null) || !is_string($locale)); if ($locale !== null) { if (!array_key_exists($locale, $this->explainer->getSupportedLocales())) { $hasErrors = true;

Artifacts

Produced during runtime
Name Size
Logs - Mutations
4.3 KB