CLI-1136: [push:artifact] include empty directories and symlinks #1893
mutation.yml
on: pull_request
Mutation Testing
1m 34s
Annotations
2 warnings
Mutation Testing:
src/Command/Push/PushArtifactCommand.php#L195
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
// @see https://git.drupalcode.org/project/drupal/-/blob/9.1.x/sites/default/default.settings.php#L295
$outputCallback('out', "Mirroring source files from {$this->dir} to {$artifactDir}");
$originFinder = $this->localMachineHelper->getFinder();
- $originFinder->in($this->dir)->ignoreDotFiles(FALSE)->ignoreVCSIgnored(TRUE);
+
$targetFinder = $this->localMachineHelper->getFinder();
$targetFinder->in($artifactDir)->ignoreDotFiles(FALSE);
$this->localMachineHelper->getFilesystem()->mirror($this->dir, $artifactDir, $originFinder, ['override' => TRUE, 'delete' => TRUE], $targetFinder);
|
Mutation Testing:
src/Command/Push/PushArtifactCommand.php#L201
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$originFinder = $this->localMachineHelper->getFinder();
$originFinder->in($this->dir)->ignoreDotFiles(FALSE)->ignoreVCSIgnored(TRUE);
$targetFinder = $this->localMachineHelper->getFinder();
- $targetFinder->in($artifactDir)->ignoreDotFiles(FALSE);
+
$this->localMachineHelper->getFilesystem()->mirror($this->dir, $artifactDir, $originFinder, ['override' => TRUE, 'delete' => TRUE], $targetFinder);
$this->localMachineHelper->checkRequiredBinariesExist(['composer']);
$outputCallback('out', 'Installing Composer production dependencies');
|