CLI-1257: pull:db fails with too many tables #2072
mutation.yml
on: pull_request
Mutation Testing
5m 10s
Annotations
4 warnings
Mutation Testing:
src/Command/Pull/PullCommandBase.php#L387
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$sql = 'DROP TABLE ' . implode(', ', $tables);
$tempnam = $this->localMachineHelper->getFilesystem()->tempnam(sys_get_temp_dir(), 'acli_drop_table_', '.sql');
$this->localMachineHelper->getFilesystem()->dumpFile($tempnam, $sql);
- $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam];
+ $command = ['--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam];
$process = $this->localMachineHelper->execute($command, $outputCallback, NULL, FALSE, NULL, ['MYSQL_PWD' => $dbPassword]);
if (!$process->isSuccessful()) {
throw new AcquiaCliException('Unable to drop tables from database. {message}', ['message' => $process->getErrorOutput()]);
|
Mutation Testing:
src/Command/Pull/PullCommandBase.php#L395
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$sql = 'DROP TABLE ' . implode(', ', $tables);
$tempnam = $this->localMachineHelper->getFilesystem()->tempnam(sys_get_temp_dir(), 'acli_drop_table_', '.sql');
$this->localMachineHelper->getFilesystem()->dumpFile($tempnam, $sql);
- $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam];
+ $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', $tempnam . 'source '];
$process = $this->localMachineHelper->execute($command, $outputCallback, NULL, FALSE, NULL, ['MYSQL_PWD' => $dbPassword]);
if (!$process->isSuccessful()) {
throw new AcquiaCliException('Unable to drop tables from database. {message}', ['message' => $process->getErrorOutput()]);
|
Mutation Testing:
src/Command/Pull/PullCommandBase.php#L395
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$sql = 'DROP TABLE ' . implode(', ', $tables);
$tempnam = $this->localMachineHelper->getFilesystem()->tempnam(sys_get_temp_dir(), 'acli_drop_table_', '.sql');
$this->localMachineHelper->getFilesystem()->dumpFile($tempnam, $sql);
- $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam];
+ $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source '];
$process = $this->localMachineHelper->execute($command, $outputCallback, NULL, FALSE, NULL, ['MYSQL_PWD' => $dbPassword]);
if (!$process->isSuccessful()) {
throw new AcquiaCliException('Unable to drop tables from database. {message}', ['message' => $process->getErrorOutput()]);
|
Mutation Testing:
src/Command/Pull/PullCommandBase.php#L395
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$sql = 'DROP TABLE ' . implode(', ', $tables);
$tempnam = $this->localMachineHelper->getFilesystem()->tempnam(sys_get_temp_dir(), 'acli_drop_table_', '.sql');
$this->localMachineHelper->getFilesystem()->dumpFile($tempnam, $sql);
- $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam];
+ $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', $tempnam];
$process = $this->localMachineHelper->execute($command, $outputCallback, NULL, FALSE, NULL, ['MYSQL_PWD' => $dbPassword]);
if (!$process->isSuccessful()) {
throw new AcquiaCliException('Unable to drop tables from database. {message}', ['message' => $process->getErrorOutput()]);
|