Lock file maintenance #1505
continuous-integration.yml
on: push
ci
/
Generate job matrix
5s
PHPUnit Coverage
27s
Check for missing dependencies
17s
Mutation Tests
1m 26s
Matrix: ci / QA Checks
Annotations
7 warnings
PHPUnit Coverage
Unexpected input(s) 'file', valid inputs are ['binary', 'codecov_yml_path', 'commit_parent', 'directory', 'disable_file_fixes', 'disable_search', 'disable_safe_directory', 'dry_run', 'env_vars', 'exclude', 'fail_ci_if_error', 'files', 'flags', 'git_service', 'gcov_args', 'gcov_executable', 'gcov_ignore', 'gcov_include', 'handle_no_reports_found', 'job_code', 'name', 'network_filter', 'network_prefix', 'os', 'override_branch', 'override_build', 'override_build_url', 'override_commit', 'override_pr', 'plugins', 'report_code', 'report_type', 'root_dir', 'skip_validation', 'slug', 'swift_project', 'token', 'url', 'use_legacy_upload_endpoint', 'use_oidc', 'verbose', 'version', 'working-directory']
|
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
|