Skip to content

[tuya-connector] Refactoring tuya connector to new specs (#143) #12

[tuya-connector] Refactoring tuya connector to new specs (#143)

[tuya-connector] Refactoring tuya connector to new specs (#143) #12

Re-run triggered August 22, 2023 11:57
Status Success
Total duration 2m 15s
Artifacts 1

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
Fit to window
Zoom out
Zoom in

Annotations

13 warnings
Test for mutants (8.2, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test for mutants (8.2, ubuntu-latest): src/Commands/Devices.php#L110
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public const NAME = 'fb:ns-panel-connector:devices'; 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\Connectors\ConnectorsRepository $connectorsRepository, private readonly DevicesModels\Devices\DevicesRepository $devicesRepository, private readonly DevicesModels\Devices\DevicesManager $devicesManager, private readonly DevicesModels\Devices\Properties\PropertiesRepository $devicesPropertiesRepository, private readonly DevicesModels\Devices\Properties\PropertiesManager $devicesPropertiesManager, private readonly DevicesModels\Channels\ChannelsRepository $channelsRepository, private readonly DevicesModels\Channels\ChannelsManager $channelsManager, private readonly DevicesModels\Channels\Properties\PropertiesRepository $channelsPropertiesRepository, private readonly DevicesModels\Channels\Properties\PropertiesManager $channelsPropertiesManager, private readonly Persistence\ManagerRegistry $managerRegistry, 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/Devices.php#L118
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('NS Panel connector devices management'); + } /** * @throws Console\Exception\InvalidArgumentException
Test for mutants (8.2, ubuntu-latest): src/Commands/Discovery.php#L66
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ private DateTimeInterface|null $executedTime = null; public function __construct(private readonly DevicesModels\Connectors\ConnectorsRepository $connectorsRepository, private readonly DevicesModels\Devices\DevicesRepository $devicesRepository, 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/Discovery.php#L74
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('NS Panel connector devices 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/Discovery.php#L78
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('NS Panel connector devices 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 devices 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/Discovery.php#L84
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('NS Panel connector devices 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 devices 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/Discovery.php#L91
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('NS Panel connector devices 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 devices 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#L60
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public const NAME = 'fb:ns-panel-connector:execute'; public function __construct(private readonly DevicesModels\Connectors\ConnectorsRepository $connectorsRepository, 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#L68
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#L72
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
Code tests (8.2, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Code tests (8.1, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
4.25 MB