Skip to content

telemetry

telemetry #2323

Triggered via push May 16, 2024 23:45
Status Success
Total duration 4m 34s
Artifacts

mutation.yml

on: push
Mutation Testing
4m 26s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation Testing: src/AcsfApi/AcsfClient.php#L15
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public function processResponse(ResponseInterface $response) : mixed { $bodyJson = $response->getBody(); - $body = json_decode((string) $bodyJson, FALSE, 512, JSON_THROW_ON_ERROR); + $body = json_decode((string) $bodyJson, FALSE, 511, JSON_THROW_ON_ERROR); // ACSF sometimes returns an array rather than an object. if (is_array($body)) { return $body;
Mutation Testing: src/AcsfApi/AcsfClient.php#L15
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public function processResponse(ResponseInterface $response) : mixed { $bodyJson = $response->getBody(); - $body = json_decode((string) $bodyJson, FALSE, 512, JSON_THROW_ON_ERROR); + $body = json_decode((string) $bodyJson, FALSE, 513, JSON_THROW_ON_ERROR); // ACSF sometimes returns an array rather than an object. if (is_array($body)) { return $body;
Mutation Testing: src/AcsfApi/AcsfClient.php#L30
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ throw new ApiErrorException($body); } // Throw error for 4xx and 5xx responses. - if (property_exists($body, 'message') && in_array(substr((string) $response->getStatusCode(), 0, 1), ['4', '5'], TRUE)) { + if (property_exists($body, 'message') || in_array(substr((string) $response->getStatusCode(), 0, 1), ['4', '5'], TRUE)) { $body->error = $response->getStatusCode(); throw new ApiErrorException($body); }
Mutation Testing: src/AcsfApi/AcsfClientService.php#L18
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function getClient() : AcsfClient { $client = AcsfClient::factory($this->connector); - $this->configureClient($client); + return $client; } protected function checkAuthentication() : bool
Mutation Testing: src/AcsfApi/AcsfConnector.php#L21
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ public function __construct(array $config, string $baseUri = NULL, string $urlAccessToken = NULL) { parent::__construct($config, $baseUri, $urlAccessToken); - $this->client = new GuzzleClient(['auth' => [$config['key'], $config['secret']], 'base_uri' => $this->getBaseUri()]); + $this->client = new GuzzleClient(['base_uri' => $this->getBaseUri()]); } /** * @param array<string> $options
Mutation Testing: src/AcsfApi/AcsfConnector.php#L22
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ public function __construct(array $config, string $baseUri = NULL, string $urlAccessToken = NULL) { parent::__construct($config, $baseUri, $urlAccessToken); - $this->client = new GuzzleClient(['auth' => [$config['key'], $config['secret']], 'base_uri' => $this->getBaseUri()]); + $this->client = new GuzzleClient(['auth' => [$config['secret']], 'base_uri' => $this->getBaseUri()]); } /** * @param array<string> $options
Mutation Testing: src/AcsfApi/AcsfConnector.php#L26
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ public function __construct(array $config, string $baseUri = NULL, string $urlAccessToken = NULL) { parent::__construct($config, $baseUri, $urlAccessToken); - $this->client = new GuzzleClient(['auth' => [$config['key'], $config['secret']], 'base_uri' => $this->getBaseUri()]); + $this->client = new GuzzleClient(['auth' => [$config['key'], $config['secret']], 'base_uri' > $this->getBaseUri()]); } /** * @param array<string> $options
Mutation Testing: src/AcsfApi/AcsfCredentials.php#L45
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } private function getCurrentFactory() : mixed { - if (($factory = $this->datastoreCloud->get('acsf_active_factory')) && ($acsfFactories = $this->datastoreCloud->get('acsf_factories')) && array_key_exists($factory, $acsfFactories)) { + if ((($factory = $this->datastoreCloud->get('acsf_active_factory')) || ($acsfFactories = $this->datastoreCloud->get('acsf_factories'))) && array_key_exists($factory, $acsfFactories)) { return $acsfFactories[$factory]; } return NULL;
Mutation Testing: src/AcsfApi/AcsfCredentials.php#L45
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ } private function getCurrentFactory() : mixed { - if (($factory = $this->datastoreCloud->get('acsf_active_factory')) && ($acsfFactories = $this->datastoreCloud->get('acsf_factories')) && array_key_exists($factory, $acsfFactories)) { + if (($factory = $this->datastoreCloud->get('acsf_active_factory')) && ($acsfFactories = $this->datastoreCloud->get('acsf_factories')) && !array_key_exists($factory, $acsfFactories)) { return $acsfFactories[$factory]; } return NULL;
Mutation Testing: src/Application.php#L35
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function renderThrowable(Throwable $e, OutputInterface $output) : void { - parent::renderThrowable($e, $output); + if ($this->getHelpMessages()) { $io = new SymfonyStyle(new ArrayInput([]), $output); $outputStyle = new OutputFormatterStyle('white', 'blue');