Use configuration instead of entity (#236) #70
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/Discover.php#L69
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
private DateTimeInterface|null $executedTime = null;
public function __construct(private readonly Helpers\Devices\SubDevice $subDeviceHelper, private readonly DevicesModels\Configuration\Connectors\Repository $connectorsConfigurationRepository, private readonly DevicesModels\Configuration\Devices\Repository $devicesConfigurationRepository, private readonly DateTimeFactory\Factory $dateTimeFactory, 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/Discover.php#L77
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('NS Panel connector discovery')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', true), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID or identifier', true)]));
+
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Discover.php#L81
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('NS Panel connector discovery')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', true), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID or identifier', true)]));
+ $this->setName(self::NAME)->setDescription('NS Panel connector discovery')->setDefinition(new Input\InputDefinition([new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID or identifier', true)]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Discover.php#L87
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('NS Panel connector discovery')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', true), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID or identifier', true)]));
+ $this->setName(self::NAME)->setDescription('NS Panel connector discovery')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', false), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID or identifier', true)]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Discover.php#L94
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('NS Panel connector discovery')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', true), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID or identifier', true)]));
+ $this->setName(self::NAME)->setDescription('NS Panel connector discovery')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', true), new Input\InputOption('device', 'd', Input\InputOption::VALUE_OPTIONAL, 'Device ID or identifier', false)]));
}
/**
* @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:ns-panel-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('NS Panel connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', 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('NS Panel connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', true)]));
+ $this->setName(self::NAME)->setDescription('NS Panel 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('NS Panel connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', true)]));
+ $this->setName(self::NAME)->setDescription('NS Panel connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Connector ID or identifier', false)]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
Test for mutants (8.2, ubuntu-latest):
src/Commands/Install.php#L123
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
private Output\OutputInterface|null $output = null;
public function __construct(private readonly API\LanApiFactory $lanApiFactory, private readonly Helpers\Loader $loader, private readonly Helpers\Entity $entityHelper, private readonly NsPanel\Logger $logger, private readonly DevicesModels\Entities\Connectors\ConnectorsRepository $connectorsRepository, private readonly DevicesModels\Entities\Connectors\ConnectorsManager $connectorsManager, private readonly DevicesModels\Entities\Connectors\Properties\PropertiesRepository $connectorsPropertiesRepository, private readonly DevicesModels\Entities\Connectors\Properties\PropertiesManager $connectorsPropertiesManager, 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 BootstrapHelpers\Database $databaseHelper, private readonly DateTimeFactory\Factory $dateTimeFactory, 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
|
5.09 MB |
|