Lock file maintenance #1480
continuous-integration.yml
on: push
ci
/
Generate job matrix
8s
PHPUnit Coverage
23s
Check for missing dependencies
27s
Mutation Tests
1m 20s
Matrix: ci / QA Checks
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
|