chore(deps): update codecov/codecov-action action to v5 #1423
Annotations
8 warnings
Run Infection:
src/Client/Http/RequestFactory.php#L39
Escaped Mutant for Mutator "Identical":
@@ @@
/** @throws InvalidArgumentException */
public function __construct(private ParamValueConverterRegistry $paramValueConverterRegistry, private RequestFactoryInterface $requestFactory, private StreamFactoryInterface $streamFactory, UriFactoryInterface|null $uriFactory = null, UriInterface|string $uri = '')
{
- if ($uriFactory === null && $uri === '') {
+ if ($uriFactory !== null && $uri === '') {
$uri = null;
} elseif (is_string($uri)) {
if ($uriFactory === null) {
|
Run Infection:
src/Client/Http/RequestFactory.php#L112
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
}
try {
$body = new MultipartStream($streamElements);
- $request = $request->withBody($body)->withHeader('Content-Type', 'multipart/form-data; boundary=' . $body->getBoundary());
+ $request = $request->withBody($body)->withHeader('Content-Type', 'multipart/form-data; boundary=');
} catch (InvalidArgumentException) {
absurd();
}
|
Run Infection:
src/Client/PsrClickHouseClient.php#L62
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function executeQueryWithParams(string $query, array $params, array $settings = []): void
{
- $this->executeRequest($this->sqlFactory->createWithParameters($query, $params), params: $params, settings: $settings);
+
}
public function select(string $query, Format $outputFormat, array $settings = []): Output
{
|
Run Infection:
src/Client/PsrClickHouseClient.php#L73
Escaped Mutant for Mutator "Catch_":
@@ @@
{
try {
return $this->selectWithParams($query, params: [], outputFormat: $outputFormat, settings: $settings);
- } catch (UnsupportedParamValue|UnsupportedParamType) {
+ } catch (UnsupportedParamType) {
absurd();
}
}
|
Run Infection:
src/Exception/ServerError.php#L20
Escaped Mutant for Mutator "PregMatchRemoveCaret":
@@ @@
public static function fromResponse(ResponseInterface $response): self
{
$bodyContent = $response->getBody()->__toString();
- return new self($bodyContent, code: preg_match('~^Code: (\d+). DB::Exception:~', $bodyContent, $matches) === 1 ? (int) $matches[1] : 0);
+ return new self($bodyContent, code: preg_match('~Code: (\d+). DB::Exception:~', $bodyContent, $matches) === 1 ? (int) $matches[1] : 0);
}
}
|
Run Infection:
src/Snippet/DatabaseSize.php#L34
Escaped Mutant for Mutator "Coalesce":
@@ @@
SELECT sum(bytes) AS size
FROM system.parts
WHERE active AND database=:database
- CLICKHOUSE, ['database' => $databaseName ?? Expression::new('currentDatabase()')], $format);
+ CLICKHOUSE, ['database' => Expression::new('currentDatabase()') ?? $databaseName], $format);
return (int) $currentDatabase->data[0]['size'];
}
}
|
Run Infection:
src/Snippet/TableSizes.php#L54
Escaped Mutant for Mutator "Coalesce":
@@ @@
) parts USING ( table, database )
WHERE database = :database AND storage_policy <> ''
GROUP BY table, database
- CLICKHOUSE, ['database' => $databaseName ?? Expression::new('currentDatabase()')], $format)->data;
+ CLICKHOUSE, ['database' => Expression::new('currentDatabase()') ?? $databaseName], $format)->data;
}
}
|
Run Infection:
src/Sql/ValueFormatter.php#L103
Escaped Mutant for Mutator "UnwrapArrayMap":
@@ @@
$firstValue = $value[array_key_first($value)];
$mapper = is_array($firstValue) ? function ($value): string {
assert(is_array($value));
- return sprintf('(%s)', implode(',', array_map(fn($val) => $this->format($val), $value)));
+ return sprintf('(%s)', implode(',', $value));
} : fn($value): string => $value === null ? 'NULL' : $this->format($value);
return implode(',', array_map($mapper, $value));
}
|
Loading