GL-2039: Added prompt for nodejs and php project selection. #2118
mutation.yml
on: pull_request
Mutation Testing
5m 16s
Annotations
3 warnings
Mutation Testing:
src/Command/CodeStudio/CodeStudioWizardCommand.php#L213
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$gitlabCicdExistingVariablesKeyed[$key] = $variable;
}
foreach ($gitlabCicdVariables as $variable) {
- $this->checklist->addItem("Setting GitLab CI/CD variables for <comment>{$variable['key']}</comment>");
+
if (!array_key_exists($variable['key'], $gitlabCicdExistingVariablesKeyed)) {
$this->gitLabClient->projects()->addVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]);
} else {
|
Mutation Testing:
src/Command/CodeStudio/CodeStudioWizardCommand.php#L216
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
foreach ($gitlabCicdVariables as $variable) {
$this->checklist->addItem("Setting GitLab CI/CD variables for <comment>{$variable['key']}</comment>");
if (!array_key_exists($variable['key'], $gitlabCicdExistingVariablesKeyed)) {
- $this->gitLabClient->projects()->addVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]);
+ $this->gitLabClient->projects()->addVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['variable_type' => $variable['variable_type']]);
} else {
$this->gitLabClient->projects()->updateVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]);
}
|
Mutation Testing:
src/Command/CodeStudio/CodeStudioWizardCommand.php#L222
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
} else {
$this->gitLabClient->projects()->updateVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]);
}
- $this->checklist->completePreviousItem();
+
}
}
private function setGitLabCiCdVariablesForNodeProject(array $project, string $cloudApplicationUuid, string $cloudKey, string $cloudSecret, string $projectAccessTokenName, string $projectAccessToken, string $nodeVersion) : void
|