Skip to content

Lock file maintenance #1476

Lock file maintenance

Lock file maintenance #1476

Triggered via push November 14, 2024 04:04
Status Success
Total duration 1m 38s
Artifacts
ci  /  Generate job matrix
6s
ci / Generate job matrix
PHPUnit Coverage
34s
PHPUnit Coverage
Check for missing dependencies
26s
Check for missing dependencies
Mutation Tests
1m 27s
Mutation Tests
Matrix: ci / QA Checks
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
Mutation Tests: src/BaseClient.php#L78
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $body = Json::decodeToArray((string) $response->getBody()); $list = []; foreach ($body as $item) { - Assert::isArray($item); + $definition = Definition::fromArray($item); $list[$definition->id()] = $definition; }
Mutation Tests: src/BaseClient.php#L202
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $body = Json::decodeToArray((string) $response->getBody()); $list = []; foreach ($body as $item) { - Assert::isArray($item); + $definition = SharedSlice::fromArray($item); $list[$definition->id] = $definition; }
Mutation Tests: src/BaseClient.php#L257
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ try { $current = $this->getSharedSlice($slice->id); } catch (DefinitionNotFound) { - $this->createSharedSlice($slice); + return; } if ($slice->equals($current)) {
Mutation Tests: src/Json.php#L28
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public static function decodeToArray(string $json) : array { try { - $decoded = json_decode($json, true, 512, JSON_THROW_ON_ERROR); + $decoded = json_decode($json, true, 511, JSON_THROW_ON_ERROR); Assert::isArray($decoded); return $decoded; } catch (JsonException $e) {
Mutation Tests: src/SharedSlice.php#L33
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ /** @param array<array-key, mixed> $payload */ public static function fromArray(array $payload) : self { - Assert::keyExists($payload, 'id'); + Assert::stringNotEmpty($payload['id']); return new self($payload['id'], json_encode($payload)); }
Mutation Tests: src/SharedSlice.php#L34
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public static function fromArray(array $payload) : self { Assert::keyExists($payload, 'id'); - Assert::stringNotEmpty($payload['id']); + return new self($payload['id'], json_encode($payload)); } public function equals(SharedSlice $other) : bool