Skip to content

Merge pull request #1079 from ergebnis/dependabot/composer/ergebnis/p… #1863

Merge pull request #1079 from ergebnis/dependabot/composer/ergebnis/p…

Merge pull request #1079 from ergebnis/dependabot/composer/ergebnis/p… #1863

Triggered via push April 3, 2023 23:00
Status Failure
Total duration 2m 18s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

integrate.yaml

on: push
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Compile Phar
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
Mutation Tests (8.0, locked)
Process completed with exit code 1.
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L121
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ $io->writeError(\sprintf('<error>%s</error>', $exception->getMessage())); return 1; } - if (null !== $indentFromInput) { + if (null === $indentFromInput) { $indent = $indentFromInput; } $composerFile = $input->getArgument('file');
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L136
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ $composerFile = Factory::getComposerFile(); } $composer = $this->factory->createComposer($io, $composerFile); - if (!$composer instanceof Composer) { + if (!true) { throw Exception\ShouldNotHappen::create(); } try {
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L151
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ $io->writeError(\sprintf('<error>%s</error>', $exception->getMessage())); return 1; } - if (null !== $indentFromExtra) { + if (null === $indentFromExtra) { $indent = $indentFromExtra; } if (null !== $indentFromInput && null !== $indentFromExtra) {
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L156
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ if (null !== $indentFromExtra) { $indent = $indentFromExtra; } - if (null !== $indentFromInput && null !== $indentFromExtra) { + if (null !== $indentFromInput || null !== $indentFromExtra) { $io->write('<warning>Configuration provided via options and composer extra. Using configuration from composer extra.</warning>'); } if (false === $input->getOption('dry-run') && !\is_writable($composerFile)) {
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L163
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ if (null !== $indentFromInput && null !== $indentFromExtra) { $io->write('<warning>Configuration provided via options and composer extra. Using configuration from composer extra.</warning>'); } - if (false === $input->getOption('dry-run') && !\is_writable($composerFile)) { + if (true === $input->getOption('dry-run') && !\is_writable($composerFile)) { $io->writeError(\sprintf('<error>%s is not writable.</error>', $composerFile)); return 1; }
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L163
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ if (null !== $indentFromInput && null !== $indentFromExtra) { $io->write('<warning>Configuration provided via options and composer extra. Using configuration from composer extra.</warning>'); } - if (false === $input->getOption('dry-run') && !\is_writable($composerFile)) { + if (false !== $input->getOption('dry-run') && !\is_writable($composerFile)) { $io->writeError(\sprintf('<error>%s is not writable.</error>', $composerFile)); return 1; }
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L228
Escaped Mutant for Mutator "CatchBlockRemoval": --- Original +++ New @@ @@ }); try { $normalized = $normalizer->normalize($json); - } catch (Normalizer\Exception\OriginalInvalidAccordingToSchema $exception) { - $io->writeError('<error>Original composer.json does not match the expected JSON schema:</error>'); - self::showValidationErrors($io, ...$exception->errors()); - return 1; } catch (Normalizer\Exception\NormalizedInvalidAccordingToSchema $exception) { $io->writeError('<error>Normalized composer.json does not match the expected JSON schema:</error>'); self::showValidationErrors($io, ...$exception->errors());
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L228
Escaped Mutant for Mutator "CatchBlockRemoval": --- Original +++ New @@ @@ $io->writeError('<error>Original composer.json does not match the expected JSON schema:</error>'); self::showValidationErrors($io, ...$exception->errors()); return 1; - } catch (Normalizer\Exception\NormalizedInvalidAccordingToSchema $exception) { - $io->writeError('<error>Normalized composer.json does not match the expected JSON schema:</error>'); - self::showValidationErrors($io, ...$exception->errors()); - return 1; } catch (\RuntimeException $exception) { $io->writeError(\sprintf('<error>%s</error>', $exception->getMessage())); return 1;
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L228
Escaped Mutant for Mutator "CatchBlockRemoval": --- Original +++ New @@ @@ $io->writeError('<error>Normalized composer.json does not match the expected JSON schema:</error>'); self::showValidationErrors($io, ...$exception->errors()); return 1; - } catch (\RuntimeException $exception) { - $io->writeError(\sprintf('<error>%s</error>', $exception->getMessage())); - return 1; } if ($json->encoded() === $normalized->encoded()) { $io->write(\sprintf('<info>%s is already normalized.</info>', $composerFile));
Mutation Tests (8.0, locked): src/Command/NormalizeCommand.php#L280
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (true === $input->getOption('diff') || true === $input->getOption('dry-run')) { $io->writeError(\sprintf('<error>%s is not normalized.</error>', $composerFile)); $diff = $this->differ->diff($json->encoded(), $normalized->encoded()); - $io->write(['', '<fg=yellow>---------- begin diff ----------</>', self::formatDiff($diff), '<fg=yellow>----------- end diff -----------</>', '']); + $io->write(['<fg=yellow>---------- begin diff ----------</>', self::formatDiff($diff), '<fg=yellow>----------- end diff -----------</>', '']); } if (true === $input->getOption('dry-run')) { return 1;