[general] Packages cleaning (#249) #3
tests.yaml
on: push
Matrix: PHP Tests
Matrix: PHP Tests With Code Coverage
Matrix: PHP Tests For Mutants
Annotations
13 warnings
PHP Tests (8.2, ubuntu-latest) / Code Tests (PHP 8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP Tests With Code Coverage (8.2, ubuntu-latest) / Code Coverage (PHP 8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Clients/Client.php#L48
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private array $options;
public function __construct(Connections\Configuration $connection)
{
- $this->options = ['scheme' => 'tcp', 'host' => $connection->getHost(), 'port' => $connection->getPort()];
+ $this->options = ['host' => $connection->getHost(), 'port' => $connection->getPort()];
if ($connection->getUsername() !== null) {
$this->options['username'] = $connection->getUsername();
}
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Clients/Client.php#L50
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
private array $options;
public function __construct(Connections\Configuration $connection)
{
- $this->options = ['scheme' => 'tcp', 'host' => $connection->getHost(), 'port' => $connection->getPort()];
+ $this->options = ['scheme' => 'tcp', 'host' > $connection->getHost(), 'port' => $connection->getPort()];
if ($connection->getUsername() !== null) {
$this->options['username'] = $connection->getUsername();
}
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Clients/Client.php#L51
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
private array $options;
public function __construct(Connections\Configuration $connection)
{
- $this->options = ['scheme' => 'tcp', 'host' => $connection->getHost(), 'port' => $connection->getPort()];
+ $this->options = ['scheme' => 'tcp', 'host' => $connection->getHost(), 'port' > $connection->getPort()];
if ($connection->getUsername() !== null) {
$this->options['username'] = $connection->getUsername();
}
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Clients/Client.php#L54
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
public function __construct(Connections\Configuration $connection)
{
$this->options = ['scheme' => 'tcp', 'host' => $connection->getHost(), 'port' => $connection->getPort()];
- if ($connection->getUsername() !== null) {
+ if ($connection->getUsername() === null) {
$this->options['username'] = $connection->getUsername();
}
if ($connection->getPassword() !== null) {
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Clients/Client.php#L58
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
if ($connection->getUsername() !== null) {
$this->options['username'] = $connection->getUsername();
}
- if ($connection->getPassword() !== null) {
+ if ($connection->getPassword() === null) {
$this->options['password'] = $connection->getPassword();
}
}
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Connections/Configuration.php#L35
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
final class Configuration
{
use Nette\SmartObject;
- public function __construct(private readonly string $host = '127.0.0.1', private readonly int $port = 6379, private readonly string|null $username = null, private readonly string|null $password = null)
+ public function __construct(private readonly string $host = '127.0.0.1', private readonly int $port = 6378, private readonly string|null $username = null, private readonly string|null $password = null)
{
}
public function getHost() : string
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Connections/Configuration.php#L35
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
final class Configuration
{
use Nette\SmartObject;
- public function __construct(private readonly string $host = '127.0.0.1', private readonly int $port = 6379, private readonly string|null $username = null, private readonly string|null $password = null)
+ public function __construct(private readonly string $host = '127.0.0.1', private readonly int $port = 6380, private readonly string|null $username = null, private readonly string|null $password = null)
{
}
public function getHost() : string
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/DI/RedisDbExtension.php#L63
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
public function getConfigSchema() : Schema\Schema
{
- return Schema\Expect::structure(['client' => Schema\Expect::structure(['host' => Schema\Expect::string()->default('127.0.0.1'), 'port' => Schema\Expect::int(6379), 'username' => Schema\Expect::string()->nullable(), 'password' => Schema\Expect::string()->nullable()]), 'exchange' => Schema\Expect::structure(['channel' => Schema\Expect::string()->default(Metadata\Constants::EXCHANGE_CHANNEL_NAME)])]);
+ return Schema\Expect::structure(['client' => Schema\Expect::structure(['host' => Schema\Expect::string()->default('127.0.0.1'), 'port' => Schema\Expect::int(6378), 'username' => Schema\Expect::string()->nullable(), 'password' => Schema\Expect::string()->nullable()]), 'exchange' => Schema\Expect::structure(['channel' => Schema\Expect::string()->default(Metadata\Constants::EXCHANGE_CHANNEL_NAME)])]);
}
public function loadConfiguration() : void
{
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/DI/RedisDbExtension.php#L63
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
public function getConfigSchema() : Schema\Schema
{
- return Schema\Expect::structure(['client' => Schema\Expect::structure(['host' => Schema\Expect::string()->default('127.0.0.1'), 'port' => Schema\Expect::int(6379), 'username' => Schema\Expect::string()->nullable(), 'password' => Schema\Expect::string()->nullable()]), 'exchange' => Schema\Expect::structure(['channel' => Schema\Expect::string()->default(Metadata\Constants::EXCHANGE_CHANNEL_NAME)])]);
+ return Schema\Expect::structure(['client' => Schema\Expect::structure(['host' => Schema\Expect::string()->default('127.0.0.1'), 'port' => Schema\Expect::int(6380), 'username' => Schema\Expect::string()->nullable(), 'password' => Schema\Expect::string()->nullable()]), 'exchange' => Schema\Expect::structure(['channel' => Schema\Expect::string()->default(Metadata\Constants::EXCHANGE_CHANNEL_NAME)])]);
}
public function loadConfiguration() : void
{
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/DI/RedisDbExtension.php#L79
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$builder = $this->getContainerBuilder();
$configuration = $this->getConfig();
assert($configuration instanceof stdClass);
- $builder->addDefinition($this->prefix('publisher'), new DI\Definitions\ServiceDefinition())->setType(Publishers\Publisher::class)->setArguments(['channel' => $configuration->exchange->channel]);
+
$builder->addDefinition($this->prefix('publisher.async'), new DI\Definitions\ServiceDefinition())->setType(Publishers\Async\Publisher::class)->setArguments(['channel' => $configuration->exchange->channel]);
$builder->addDefinition($this->prefix('redis.configuration'), new DI\Definitions\ServiceDefinition())->setType(Connections\Configuration::class)->setArguments(['host' => $configuration->client->host, 'port' => $configuration->client->port, 'username' => $configuration->client->username, 'password' => $configuration->client->password]);
$builder->addDefinition($this->prefix('clients.sync'), new DI\Definitions\ServiceDefinition())->setType(Clients\Client::class);
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
299 KB |
|