Skip to content

Update codecov/codecov-action action to v4 #4251

Update codecov/codecov-action action to v4

Update codecov/codecov-action action to v4 #4251

Triggered via pull request June 13, 2024 12:18
Status Success
Total duration 56s
Artifacts

mutation-tests.yml

on: pull_request
Matrix: Mutation tests
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
Mutation tests (locked, 8.1, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mutation tests (locked, 8.1, ubuntu-latest): src/Mapping/ExpandTags.php#L65
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ assert($definition instanceof Definition); assert(is_array($annotations) && $annotations !== []); $this->appendTags($definition, $annotations); - $container->addResource(new FileResource($file)); + } } /**
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/ErrorHandling/RegisterDefaultComponents.php#L34
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ } private function hasService(ContainerBuilder $container, string $service) : bool { - return $container->hasAlias($service) || $container->hasDefinition($service); + return $container->hasAlias($service) && $container->hasDefinition($service); } }
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/Mezzio/RegisterServices.php#L130
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ if (isset($tag['methods'])) { $tag['methods'] = explode(',', $tag['methods']); } - $tag['async'] = (bool) ($tag['async'] ?? false); + $tag['async'] = (bool) ($tag['async'] ?? true); $tag['serviceId'] = $serviceId; $routes[] = $tag; $names[$tag['route_name']] = $serviceId;
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/Mezzio/RegisterServices.php#L130
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ if (isset($tag['methods'])) { $tag['methods'] = explode(',', $tag['methods']); } - $tag['async'] = (bool) ($tag['async'] ?? false); + $tag['async'] = (bool) (false ?? $tag['async']); $tag['serviceId'] = $serviceId; $routes[] = $tag; $names[$tag['route_name']] = $serviceId;
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/Mezzio/RegisterServices.php#L130
Escaped Mutant for Mutator "CastBool": --- Original +++ New @@ @@ if (isset($tag['methods'])) { $tag['methods'] = explode(',', $tag['methods']); } - $tag['async'] = (bool) ($tag['async'] ?? false); + $tag['async'] = $tag['async'] ?? false; $tag['serviceId'] = $serviceId; $routes[] = $tag; $names[$tag['route_name']] = $serviceId;
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/Mezzio/RegisterServices.php#L151
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ private function extractMiddlewareList(ContainerBuilder $container) : array { $list = []; - foreach ($container->findTaggedServiceIds(Tags::HTTP_MIDDLEWARE) as $serviceId => $tags) { + foreach (array() as $serviceId => $tags) { foreach ($tags as $tag) { $priority = (int) ($tag['priority'] ?? 0); $path = (string) ($tag['path'] ?? '/');
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/Mezzio/RegisterServices.php#L153
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $list = []; foreach ($container->findTaggedServiceIds(Tags::HTTP_MIDDLEWARE) as $serviceId => $tags) { foreach ($tags as $tag) { - $priority = (int) ($tag['priority'] ?? 0); + $priority = (int) ($tag['priority'] ?? -1); $path = (string) ($tag['path'] ?? '/'); $list[$priority][$path] ??= []; $list[$priority][$path][] = $serviceId;
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/Mezzio/RegisterServices.php#L153
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ $list = []; foreach ($container->findTaggedServiceIds(Tags::HTTP_MIDDLEWARE) as $serviceId => $tags) { foreach ($tags as $tag) { - $priority = (int) ($tag['priority'] ?? 0); + $priority = (int) ($tag['priority'] ?? 1); $path = (string) ($tag['path'] ?? '/'); $list[$priority][$path] ??= []; $list[$priority][$path][] = $serviceId;
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/Mezzio/RegisterServices.php#L163
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ } $list[Priorities::CONTENT_NEGOTIATION]['/'] ??= []; $list[Priorities::BEFORE_CUSTOM]['/'] ??= []; - $list[Priorities::AFTER_CUSTOM]['/'] ??= []; + $list[Priorities::AFTER_CUSTOM]['/'] = []; $list[Priorities::CONTENT_NEGOTIATION]['/'][] = ContentTypeMiddleware::class; $list[Priorities::BEFORE_CUSTOM]['/'][] = RouteMiddleware::class; $list[Priorities::BEFORE_CUSTOM]['/'][] = BodyParamsMiddleware::class;
Mutation tests (locked, 8.1, ubuntu-latest): src/Routing/Mezzio/RegisterServices.php#L201
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ } } } - return $prioritised; + return count($prioritised) > 1 ? array_slice($prioritised, 0, 1, true) : $prioritised; } /** @param string[] $services */ private function registerServiceLocator(ContainerBuilder $container, array $services) : Reference
Mutation tests (locked, 8.1, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/