Skip to content

[common] Some small fixes & code cleaning during app testing (#160) #61

[common] Some small fixes & code cleaning during app testing (#160)

[common] Some small fixes & code cleaning during app testing (#160) #61

Triggered via push November 6, 2023 22:41
Status Success
Total duration 13m 8s
Artifacts

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

6 warnings
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\Entities\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#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/Initialize.php#L69
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public const NAME = 'fb:virtual-connector:initialize'; public function __construct(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 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/Initialize.php#L77
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ protected function configure() : void { - $this->setName(self::NAME)->setDescription('Virtual connector initialization'); + } /** * @throws Console\Exception\InvalidArgumentException