Skip to content
Triggered via schedule July 29, 2024 08:22
Status Success
Total duration 3m 15s
Artifacts 1

ci.yaml

on: schedule
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
3s
Status check - CI
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L71
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $dependencies = $this->getDependencies(); $file = $this->getFile($names['namespace'], $names['class'], $dependencies['schema'], $dependencies['switches'], $dependencies['modules']); FileSystem::write($loaderSchema->getFile(), (string) $file); - FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? true : Neon::BLOCK)); + return $loaderSchema; } public function generate(): BaseLoader
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L75
Escaped Mutant for Mutator "Ternary": @@ @@ $dependencies = $this->getDependencies(); $file = $this->getFile($names['namespace'], $names['class'], $dependencies['schema'], $dependencies['switches'], $dependencies['modules']); FileSystem::write($loaderSchema->getFile(), (string) $file); - FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? true : Neon::BLOCK)); + FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? Neon::BLOCK : true)); return $loaderSchema; } public function generate(): BaseLoader
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L76
Escaped Mutant for Mutator "TrueValue": @@ @@ $dependencies = $this->getDependencies(); $file = $this->getFile($names['namespace'], $names['class'], $dependencies['schema'], $dependencies['switches'], $dependencies['modules']); FileSystem::write($loaderSchema->getFile(), (string) $file); - FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? true : Neon::BLOCK)); + FileSystem::write(dirname($loaderSchema->getFile()) . '/modules.stub.neon', Neon::encode($this->getStubFileContent($dependencies['modules']), InstalledVersions::satisfies(new VersionParser(), 'nette/neon', '>=3.3.0') ? false : Neon::BLOCK)); return $loaderSchema; } public function generate(): BaseLoader
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L114
Escaped Mutant for Mutator "UnwrapStrReplace": @@ @@ $itemsByPriority = [ConfigFilePriority::first()->name => [], ConfigFilePriority::normal()->name => [], ConfigFilePriority::last()->name => []]; foreach ($modules as $module) { $package = $module->getData(); - $packageName = str_replace('/', '_', $package->getName()); + $packageName = $package->getName(); $packageDirRelative = $package->getRelativePath(); $packageSchema = $module->getSchema(); $modulesMeta[$packageName] = [LoaderKey::MetaDir => $packageDirRelative];
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L122
Escaped Mutant for Mutator "Foreach_": @@ @@ $packageDirRelative = $package->getRelativePath(); $packageSchema = $module->getSchema(); $modulesMeta[$packageName] = [LoaderKey::MetaDir => $packageDirRelative]; - foreach ($packageSchema->getConfigFiles() as $configFile) { + foreach ([] as $configFile) { // Skip configuration if required package is not installed foreach ($configFile->getRequiredPackages() as $requiredPackage) { if ($this->modules->getModule($requiredPackage) === null) {
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L147
Escaped Mutant for Mutator "UnwrapStrReplace": @@ @@ $itemsByPriority[$configFile->getPriority()->name][] = $item; } } - $rootName = str_replace('/', '_', $this->modules->getRootModule()->getData()->getName()); + $rootName = $this->modules->getRootModule()->getData()->getName(); $modulesMeta['root'] = $modulesMeta[$rootName]; unset($modulesMeta['__root__']); $schema = array_merge($itemsByPriority[ConfigFilePriority::first()->name], $itemsByPriority[ConfigFilePriority::normal()->name], $itemsByPriority[ConfigFilePriority::last()->name]);
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L151
Escaped Mutant for Mutator "UnwrapArrayMerge": @@ @@ $rootName = str_replace('/', '_', $this->modules->getRootModule()->getData()->getName()); $modulesMeta['root'] = $modulesMeta[$rootName]; unset($modulesMeta['__root__']); - $schema = array_merge($itemsByPriority[ConfigFilePriority::first()->name], $itemsByPriority[ConfigFilePriority::normal()->name], $itemsByPriority[ConfigFilePriority::last()->name]); + $schema = $itemsByPriority[ConfigFilePriority::first()->name]; return ['schema' => $schema, 'switches' => $switches, 'modules' => $modulesMeta]; } /**
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L151
Escaped Mutant for Mutator "UnwrapArrayMerge": @@ @@ $rootName = str_replace('/', '_', $this->modules->getRootModule()->getData()->getName()); $modulesMeta['root'] = $modulesMeta[$rootName]; unset($modulesMeta['__root__']); - $schema = array_merge($itemsByPriority[ConfigFilePriority::first()->name], $itemsByPriority[ConfigFilePriority::normal()->name], $itemsByPriority[ConfigFilePriority::last()->name]); + $schema = $itemsByPriority[ConfigFilePriority::normal()->name]; return ['schema' => $schema, 'switches' => $switches, 'modules' => $modulesMeta]; } /**
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L151
Escaped Mutant for Mutator "UnwrapArrayMerge": @@ @@ $rootName = str_replace('/', '_', $this->modules->getRootModule()->getData()->getName()); $modulesMeta['root'] = $modulesMeta[$rootName]; unset($modulesMeta['__root__']); - $schema = array_merge($itemsByPriority[ConfigFilePriority::first()->name], $itemsByPriority[ConfigFilePriority::normal()->name], $itemsByPriority[ConfigFilePriority::last()->name]); + $schema = $itemsByPriority[ConfigFilePriority::last()->name]; return ['schema' => $schema, 'switches' => $switches, 'modules' => $modulesMeta]; } /**
Test for mutants (ubuntu-latest, 8.3): src/Loader/LoaderGenerator.php#L171
Escaped Mutant for Mutator "Foreach_": @@ @@ private function getSwitches(array $modules): array { $switchesByPackage = []; - foreach ($modules as $module) { + foreach ([] as $module) { $switchesByPackage[] = $module->getSchema()->getSwitches(); } return array_merge(...$switchesByPackage);

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
8.01 KB