Skip to content

passing?

passing? #2326

Triggered via push May 16, 2024 23:50
Status Success
Total duration 31s
Artifacts

mutation.yml

on: push
Mutation Testing
23s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation Testing: src/Command/App/LinkCommand.php#L19
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { protected function configure() : void { - $this->acceptApplicationUuid(); + } protected function execute(InputInterface $input, OutputInterface $output) : int {
Mutation Testing: src/Command/CommandBase.php#L113
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function __construct(public LocalMachineHelper $localMachineHelper, protected CloudDataStore $datastoreCloud, protected AcquiaCliDatastore $datastoreAcli, protected ApiCredentialsInterface $cloudCredentials, protected TelemetryHelper $telemetryHelper, protected string $projectDir, protected ClientService $cloudApiClientService, public SshHelper $sshHelper, protected string $sshDir, LoggerInterface $logger) { $this->logger = $logger; - $this->setLocalDbPassword(); + $this->setLocalDbUser(); $this->setLocalDbName(); $this->setLocalDbHost();
Mutation Testing: src/Command/CommandBase.php#L114
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $this->logger = $logger; $this->setLocalDbPassword(); - $this->setLocalDbUser(); + $this->setLocalDbName(); $this->setLocalDbHost(); parent::__construct();
Mutation Testing: src/Command/CommandBase.php#L115
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->logger = $logger; $this->setLocalDbPassword(); $this->setLocalDbUser(); - $this->setLocalDbName(); + $this->setLocalDbHost(); parent::__construct(); if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) {
Mutation Testing: src/Command/CommandBase.php#L116
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->setLocalDbPassword(); $this->setLocalDbUser(); $this->setLocalDbName(); - $this->setLocalDbHost(); + parent::__construct(); if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) { $this->appendHelp('This command requires authentication via the Cloud Platform API.');
Mutation Testing: src/Command/CommandBase.php#L117
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->setLocalDbUser(); $this->setLocalDbName(); $this->setLocalDbHost(); - parent::__construct(); + if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) { $this->appendHelp('This command requires authentication via the Cloud Platform API.'); }
Mutation Testing: src/Command/CommandBase.php#L118
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ $this->setLocalDbName(); $this->setLocalDbHost(); parent::__construct(); - if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) { + if (!(new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) { $this->appendHelp('This command requires authentication via the Cloud Platform API.'); } if ((new \ReflectionClass(static::class))->getAttributes(RequireDb::class)) {
Mutation Testing: src/Command/CommandBase.php#L119
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->setLocalDbHost(); parent::__construct(); if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) { - $this->appendHelp('This command requires authentication via the Cloud Platform API.'); + } if ((new \ReflectionClass(static::class))->getAttributes(RequireDb::class)) { $this->appendHelp('This command requires an active database connection. Set the following environment variables prior to running this command: ' . 'ACLI_DB_HOST, ACLI_DB_NAME, ACLI_DB_USER, ACLI_DB_PASSWORD');
Mutation Testing: src/Command/CommandBase.php#L121
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) { $this->appendHelp('This command requires authentication via the Cloud Platform API.'); } - if ((new \ReflectionClass(static::class))->getAttributes(RequireDb::class)) { + if (!(new \ReflectionClass(static::class))->getAttributes(RequireDb::class)) { $this->appendHelp('This command requires an active database connection. Set the following environment variables prior to running this command: ' . 'ACLI_DB_HOST, ACLI_DB_NAME, ACLI_DB_USER, ACLI_DB_PASSWORD'); } }
Mutation Testing: src/Command/CommandBase.php#L127
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ $this->appendHelp('This command requires an active database connection. Set the following environment variables prior to running this command: ' . 'ACLI_DB_HOST, ACLI_DB_NAME, ACLI_DB_USER, ACLI_DB_PASSWORD'); } } - public function appendHelp(string $helpText) : void + protected function appendHelp(string $helpText) : void { $currentHelp = $this->getHelp(); $helpText = $currentHelp ? $currentHelp . "\n" . $helpText : $currentHelp . $helpText;