docs: prepares 0.4.0 release notes (#35) #133
ci.yml
on: push
Composer validate
12s
Shellcheck host runner
4s
Changelog structure
6s
PHPStan
24s
CS Fixer
27s
Coverage
1m 1s
Composer audit
17s
Mutation testing
13m 58s
Matrix: tests
Annotations
10 warnings
|
Mutation testing:
src/Command/DeployTasksGenerateCommand.php#L256
Escaped Mutant for Mutator "UnwrapRtrim":
@@ @@
private function dirToNamespace(string $dir): string
{
- $dir = \rtrim($dir, '/');
+ $dir = $dir;
$parts = \explode('/', $dir);
foreach ($parts as $segment) {
|
|
Mutation testing:
src/Command/DeployTasksGenerateCommand.php#L233
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
]);
}
- $this->fs->mkdir($absoluteDir, 0755);
+
$this->fs->dumpFile($filePath, $fileContent);
$this->fs->chmod($filePath, 0640);
|
|
Mutation testing:
src/Command/DeployTasksGenerateCommand.php#L175
Escaped Mutant for Mutator "CastString":
@@ @@
return Command::FAILURE;
}
- $fileContent = (string) \file_get_contents($this->templatePath);
+ $fileContent = \file_get_contents($this->templatePath);
$fileContent = \strtr($fileContent, [
'{{ namespace }}' => $namespace,
'{{ className }}' => $className,
|
|
Mutation testing:
src/Command/DeployTasksCreateSchemaCommand.php#L67
Escaped Mutant for Mutator "LogicalOr":
@@ @@
$this->storage->createSchema();
- if (null === $this->configuration || null === $this->connectionName) {
+ if (null === $this->configuration && null === $this->connectionName) {
$io->info('Storage schema was created.');
return Command::SUCCESS;
|
|
Mutation testing:
src/Command/CommandMessages.php#L49
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
public static function formatDuration(int $durationMs): string
{
if ($durationMs < 1000) {
- return \sprintf('%dms', $durationMs);
+
}
return \sprintf('%.1fs', $durationMs / 1000);
|
|
Mutation testing:
src/Command/CommandMessages.php#L48
Escaped Mutant for Mutator "LessThanNegotiation":
@@ @@
*/
public static function formatDuration(int $durationMs): string
{
- if ($durationMs < 1000) {
+ if ($durationMs >= 1000) {
return \sprintf('%dms', $durationMs);
}
|
|
Mutation testing:
src/Command/CommandMessages.php#L48
Escaped Mutant for Mutator "LessThan":
@@ @@
*/
public static function formatDuration(int $durationMs): string
{
- if ($durationMs < 1000) {
+ if ($durationMs <= 1000) {
return \sprintf('%dms', $durationMs);
}
|
|
Mutation testing:
src/Command/CommandMessages.php#L35
Escaped Mutant for Mutator "MatchArmRemoval":
@@ @@
return match ($status) {
TaskStatus::Ran => '<info>ran</info>',
TaskStatus::Failed => '<error>failed</error>',
- TaskStatus::Skipped => '<comment>skipped</comment>',
};
}
|
|
Mutation testing:
src/Command/CommandMessages.php#L35
Escaped Mutant for Mutator "MatchArmRemoval":
@@ @@
{
return match ($status) {
TaskStatus::Ran => '<info>ran</info>',
- TaskStatus::Failed => '<error>failed</error>',
TaskStatus::Skipped => '<comment>skipped</comment>',
};
}
|
|
Mutation testing:
src/Attribute/AsDeployTask.php#L122
Escaped Mutant for Mutator "UnwrapArrayValues":
@@ @@
$groupList = match (true) {
null === $groups => [],
- \is_array($groups) => \array_values($groups),
+ \is_array($groups) => $groups,
default => [$groups],
};
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
coverage-clover
|
18.2 KB |
sha256:874e3c017ea0acb9be5eb26d7ee9e8ad45aadd28ccc960ebbfa20a616aa3d36a
|
|
|
infection-log
|
20 KB |
sha256:9a6ad8d475c1a698e034e8c4376ecd39f31516690e0c16208d7a644bd7f1f075
|
|