Skip to content

feat: Rework the diff command output #1139

feat: Rework the diff command output

feat: Rework the diff command output #1139

Triggered via pull request October 11, 2023 14:23
Status Failure
Total duration 9m 17s
Artifacts

unit-tests.yaml

on: pull_request
Matrix: infection
Matrix: unit-tests
Unit tests status
2s
Unit tests status
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
Infection (PHP 8.1)
Process completed with exit code 2.
Unit tests status
Process completed with exit code 1.
Infection (PHP 8.1): src/Console/Command/Diff.php#L274
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ $io->newLine(); self::renderPaths('-', $diff->getPharInfoA(), $diffResult[0], $io); self::renderPaths('+', $diff->getPharInfoB(), $diffResult[1], $io); - $io->error(sprintf('%d file(s) difference', count($diffResult[0]) + count($diffResult[1]))); + $io->error(sprintf('%d file(s) difference', count($diffResult[1]) + count($diffResult[1]))); } /** * @param list<non-empty-string> $paths
Infection (PHP 8.1): src/Console/Command/Diff.php#L274
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $io->newLine(); self::renderPaths('-', $diff->getPharInfoA(), $diffResult[0], $io); self::renderPaths('+', $diff->getPharInfoB(), $diffResult[1], $io); - $io->error(sprintf('%d file(s) difference', count($diffResult[0]) + count($diffResult[1]))); + $io->error(sprintf('%d file(s) difference', count($diffResult[0]) + count($diffResult[0]))); } /** * @param list<non-empty-string> $paths