Added new methods to repositories (#228) #92
ci.yaml
on: push
Matrix: Code quality assurance
Matrix: Code static analysis
Matrix: Code linting
Matrix: Test for mutants
Matrix: Code tests
Matrix: Code tests with code coverage
Annotations
10 warnings
Test for mutants (8.2, ubuntu-latest):
src/Commands/Devices/Device.php#L45
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public const ACTION_MANAGE = 'manage';
public function __construct(private readonly Persistence\ManagerRegistry $managerRegistry, string|null $name = null)
{
- parent::__construct($name);
+
}
/**
* @throws Exceptions\Runtime
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Devices/Thermostat.php#L98
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public const NAME = 'fb:virtual-connector:devices:thermostat';
public function __construct(private readonly Virtual\Logger $logger, private readonly DevicesModels\Entities\Connectors\ConnectorsRepository $connectorsRepository, private readonly DevicesModels\Entities\Devices\DevicesRepository $devicesRepository, private readonly DevicesModels\Entities\Devices\DevicesManager $devicesManager, private readonly DevicesModels\Entities\Devices\Properties\PropertiesRepository $devicesPropertiesRepository, private readonly DevicesModels\Entities\Devices\Properties\PropertiesManager $devicesPropertiesManager, private readonly DevicesModels\Entities\Channels\ChannelsRepository $channelsRepository, private readonly DevicesModels\Entities\Channels\ChannelsManager $channelsManager, private readonly DevicesModels\Entities\Channels\Properties\PropertiesRepository $channelsPropertiesRepository, private readonly DevicesModels\Entities\Channels\Properties\PropertiesManager $channelsPropertiesManager, private readonly DevicesUtilities\ChannelPropertiesStates $channelPropertiesStatesManager, private readonly BootstrapHelpers\Database $databaseHelper, private readonly Localization\Translator $translator, Persistence\ManagerRegistry $managerRegistry, string|null $name = null)
{
- parent::__construct($managerRegistry, $name);
+
}
/**
* @throws Console\Exception\InvalidArgumentException
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Devices/Thermostat.php#L106
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('Virtual connector thermostat management')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_REQUIRED, 'Connector ID'), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID'), new Input\InputOption('action', 'a', Input\InputOption::VALUE_REQUIRED, 'Manage action', [self::ACTION_CREATE => new Console\Completion\Suggestion(self::ACTION_CREATE, 'Create new thermostat'), self::ACTION_EDIT => new Console\Completion\Suggestion(self::ACTION_EDIT, 'Edit existing thermostat')])]));
+
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Devices/Thermostat.php#L110
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('Virtual connector thermostat management')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_REQUIRED, 'Connector ID'), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID'), new Input\InputOption('action', 'a', Input\InputOption::VALUE_REQUIRED, 'Manage action', [self::ACTION_CREATE => new Console\Completion\Suggestion(self::ACTION_CREATE, 'Create new thermostat'), self::ACTION_EDIT => new Console\Completion\Suggestion(self::ACTION_EDIT, 'Edit existing thermostat')])]));
+ $this->setName(self::NAME)->setDescription('Virtual connector thermostat management')->setDefinition(new Input\InputDefinition([new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID'), new Input\InputOption('action', 'a', Input\InputOption::VALUE_REQUIRED, 'Manage action', [self::ACTION_CREATE => new Console\Completion\Suggestion(self::ACTION_CREATE, 'Create new thermostat'), self::ACTION_EDIT => new Console\Completion\Suggestion(self::ACTION_EDIT, 'Edit existing thermostat')])]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Devices/Thermostat.php#L128
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('Virtual connector thermostat management')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_REQUIRED, 'Connector ID'), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID'), new Input\InputOption('action', 'a', Input\InputOption::VALUE_REQUIRED, 'Manage action', [self::ACTION_CREATE => new Console\Completion\Suggestion(self::ACTION_CREATE, 'Create new thermostat'), self::ACTION_EDIT => new Console\Completion\Suggestion(self::ACTION_EDIT, 'Edit existing thermostat')])]));
+ $this->setName(self::NAME)->setDescription('Virtual connector thermostat management')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_REQUIRED, 'Connector ID'), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID'), new Input\InputOption('action', 'a', Input\InputOption::VALUE_REQUIRED, 'Manage action', [self::ACTION_EDIT => new Console\Completion\Suggestion(self::ACTION_EDIT, 'Edit existing thermostat')])]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Execute.php#L61
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public const NAME = 'fb:virtual-connector:execute';
public function __construct(private readonly DevicesModels\Configuration\Connectors\Repository $connectorsConfigurationRepository, private readonly Localization\Translator $translator, string|null $name = null)
{
- parent::__construct($name);
+
}
/**
* @throws Console\Exception\InvalidArgumentException
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Execute.php#L69
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('Virtual connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)]));
+
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Execute.php#L73
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('Virtual connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)]));
+ $this->setName(self::NAME)->setDescription('Virtual connector service')->setDefinition(new Input\InputDefinition([]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Execute.php#L79
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('Virtual connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)]));
+ $this->setName(self::NAME)->setDescription('Virtual connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', false)]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Install.php#L79
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function __construct(private readonly array $commands, private readonly Virtual\Logger $logger, private readonly DevicesModels\Entities\Connectors\ConnectorsRepository $connectorsRepository, private readonly DevicesModels\Entities\Connectors\ConnectorsManager $connectorsManager, private readonly DevicesModels\Entities\Devices\DevicesRepository $devicesRepository, private readonly DevicesModels\Entities\Devices\DevicesManager $devicesManager, private readonly BootstrapHelpers\Database $databaseHelper, private readonly Persistence\ManagerRegistry $managerRegistry, private readonly Localization\Translator $translator, string|null $name = null)
{
- parent::__construct($name);
+
}
/**
* @throws Console\Exception\InvalidArgumentException
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
3.84 MB |
|