[tuya-connector] Refactoring commands (#214) #1168
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
ci.yaml
on: push
Matrix: Code quality assurance
Matrix: Code static analysis
Matrix: Code linting
Matrix: Code tests for mutants
Matrix: Code tests
Matrix: Code tests with code coverage
Annotations
1 error and 16 warnings
Code tests for mutants (8.2, ubuntu-latest)
The template is not valid. .github/workflows/ci.yaml (Line: 368, Col: 29): hashFiles('**/composer.json') couldn't finish within 120 seconds.
|
Code quality assurance (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code quality assurance (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code linting (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code linting (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code static analysis (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Code static analysis (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L63
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function setUp() : void
{
$this->registerDatabaseSchemaFile(__DIR__ . '/../../sql/dummy.data.sql');
- parent::setUp();
+
$dateTimeFactory = $this->createMock(DateTimeFactory\Factory::class);
$dateTimeFactory->method('getNow')->willReturn(new DateTimeImmutable('2020-04-01T12:00:00+00:00'));
$this->mockContainerService(DateTimeFactory\Factory::class, $dateTimeFactory);
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L66
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->registerDatabaseSchemaFile(__DIR__ . '/../../sql/dummy.data.sql');
parent::setUp();
$dateTimeFactory = $this->createMock(DateTimeFactory\Factory::class);
- $dateTimeFactory->method('getNow')->willReturn(new DateTimeImmutable('2020-04-01T12:00:00+00:00'));
+
$this->mockContainerService(DateTimeFactory\Factory::class, $dateTimeFactory);
}
protected function registerDatabaseSchemaFile(string $file) : void
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L70
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
parent::setUp();
$dateTimeFactory = $this->createMock(DateTimeFactory\Factory::class);
$dateTimeFactory->method('getNow')->willReturn(new DateTimeImmutable('2020-04-01T12:00:00+00:00'));
- $this->mockContainerService(DateTimeFactory\Factory::class, $dateTimeFactory);
+
}
protected function registerDatabaseSchemaFile(string $file) : void
{
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L76
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
$dateTimeFactory->method('getNow')->willReturn(new DateTimeImmutable('2020-04-01T12:00:00+00:00'));
$this->mockContainerService(DateTimeFactory\Factory::class, $dateTimeFactory);
}
- protected function registerDatabaseSchemaFile(string $file) : void
+ private function registerDatabaseSchemaFile(string $file) : void
{
if (!in_array($file, $this->sqlFiles, true)) {
$this->sqlFiles[] = $file;
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L90
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
* @throws RuntimeException
* @throws Error
*/
- protected function mockContainerService(string $serviceType, object $serviceMock) : void
+ private function mockContainerService(string $serviceType, object $serviceMock) : void
{
$container = $this->getContainer();
$foundServiceNames = $container->findByType($serviceType);
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L98
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
{
$container = $this->getContainer();
$foundServiceNames = $container->findByType($serviceType);
- foreach ($foundServiceNames as $serviceName) {
+ foreach (array() as $serviceName) {
$this->replaceContainerService($serviceName, $serviceMock);
}
}
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L99
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$container = $this->getContainer();
$foundServiceNames = $container->findByType($serviceType);
foreach ($foundServiceNames as $serviceName) {
- $this->replaceContainerService($serviceName, $serviceMock);
+
}
}
/**
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L128
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
*/
private function createContainer() : Nette\DI\Container
{
- $rootDir = __DIR__ . '/../..';
+ $rootDir = '/../..' . __DIR__;
$vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir . '/../vendor';
$config = BootstrapBoot\Bootstrap::boot();
$config->setForceReloadContainer();
|
Code tests for mutants (8.2, ubuntu-latest):
src/FastyBird/Automator/DateTime/tests/cases/unit/DbTestCase.php#L128
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
*/
private function createContainer() : Nette\DI\Container
{
- $rootDir = __DIR__ . '/../..';
+ $rootDir = '/../..';
$vendorDir = defined('FB_VENDOR_DIR') ? constant('FB_VENDOR_DIR') : $rootDir . '/../vendor';
$config = BootstrapBoot\Bootstrap::boot();
$config->setForceReloadContainer();
|