CI #340
ci.yaml
on: schedule
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
4s
Annotations
13 errors and 10 warnings
Static analysis (ubuntu-latest, 8.3):
src/Locale/LocaleProcessor.php#L1
Ignored error pattern #^Strict comparison using \!\=\= between non\-empty\-string and '' will always evaluate to true\.$# in path /home/runner/work/localization/localization/src/Locale/LocaleProcessor.php was not matched in reported errors.
|
Static analysis (ubuntu-latest, 8.3):
src/Locale/LocaleProcessor.php#L68
Strict comparison using !== between non-falsy-string and '' will always evaluate to true.
|
Static analysis (ubuntu-latest, 8.3):
src/Locale/LocaleProcessor.php#L72
Strict comparison using !== between non-falsy-string and '' will always evaluate to true.
|
Static analysis (ubuntu-latest, 8.3)
Process completed with exit code 2.
|
Tests (windows-latest, 8.3, false):
tests/Unit/Formatting/MessageFormatterTest.php#L43
Failed asserting that two strings are identical.
|
Tests (windows-latest, 8.3, false):
tests/Unit/Formatting/MessageFormatterTest.php#L43
Failed asserting that two strings are identical.
|
Tests (windows-latest, 8.3, false)
Process completed with exit code 2.
|
Tests (ubuntu-latest, 7.4, --prefer-lowest --prefer-stable, false)
The job was canceled because "windows-latest_8_3_false" failed.
|
Tests (macos-latest, 8.3, false)
The job was canceled because "windows-latest_8_3_false" failed.
|
Tests (ubuntu-latest, 8.3, false)
The job was canceled because "windows-latest_8_3_false" failed.
|
Tests (ubuntu-latest, 8.2, false)
The job was canceled because "windows-latest_8_3_false" failed.
|
Tests (ubuntu-latest, 8.0, false)
The job was canceled because "windows-latest_8_3_false" failed.
|
Status check - CI
Process completed with exit code 1.
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteCaching/CachedCatalogue.php#L41
Escaped Mutant for Mutator "Identical":
@@ @@
public function getMessage(string $message, string $languageTag): ?string
{
$messages = $this->arrayCache[$languageTag] ?? null;
- if ($messages === null) {
+ if ($messages !== null) {
$messages = $this->cache->load($languageTag, function () use ($languageTag): array {
$this->loadedFromLoader[$languageTag] = null;
return $this->loader->loadAllMessages($languageTag);
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "Identical":
@@ @@
$this->arrayCache[$languageTag] = $messages;
}
$translation = $messages[$message] ?? null;
- if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) {
+ if ($translation !== null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) {
$this->loadedFromLoader[$languageTag] = null;
$messages = $this->loader->loadAllMessages($languageTag);
$this->arrayCache[$languageTag] = $messages;
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
$this->arrayCache[$languageTag] = $messages;
}
$translation = $messages[$message] ?? null;
- if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) {
+ if (($translation === null || $this->debugMode) && !array_key_exists($languageTag, $this->loadedFromLoader)) {
$this->loadedFromLoader[$languageTag] = null;
$messages = $this->loader->loadAllMessages($languageTag);
$this->arrayCache[$languageTag] = $messages;
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "LogicalNot":
@@ @@
$this->arrayCache[$languageTag] = $messages;
}
$translation = $messages[$message] ?? null;
- if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) {
+ if ($translation === null && $this->debugMode && array_key_exists($languageTag, $this->loadedFromLoader)) {
$this->loadedFromLoader[$languageTag] = null;
$messages = $this->loader->loadAllMessages($languageTag);
$this->arrayCache[$languageTag] = $messages;
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
$this->arrayCache[$languageTag] = $messages;
}
$translation = $messages[$message] ?? null;
- if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) {
+ if ($translation === null && $this->debugMode || !array_key_exists($languageTag, $this->loadedFromLoader)) {
$this->loadedFromLoader[$languageTag] = null;
$messages = $this->loader->loadAllMessages($languageTag);
$this->arrayCache[$languageTag] = $messages;
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
@@ @@
$this->arrayCache[$languageTag] = $messages;
}
$translation = $messages[$message] ?? null;
- if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) {
+ if (!($translation === null) && !$this->debugMode && array_key_exists($languageTag, $this->loadedFromLoader)) {
$this->loadedFromLoader[$languageTag] = null;
$messages = $this->loader->loadAllMessages($languageTag);
$this->arrayCache[$languageTag] = $messages;
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "LogicalAndNegation":
@@ @@
$this->arrayCache[$languageTag] = $messages;
}
$translation = $messages[$message] ?? null;
- if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) {
+ if (!($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader))) {
$this->loadedFromLoader[$languageTag] = null;
$messages = $this->loader->loadAllMessages($languageTag);
$this->arrayCache[$languageTag] = $messages;
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteDI/LazyLoaderManager.php#L25
Escaped Mutant for Mutator "Foreach_":
@@ @@
return $this->loaders;
}
$loaders = [];
- foreach ($this->getKeys() as $key) {
+ foreach ([] as $key) {
$loaders[$key] = $this->getTypedServiceOrThrow($key, Loader::class);
}
return $this->loaders = $loaders;
}
}
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteDI/LocalizationExtension.php#L95
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$builder = $this->getContainerBuilder();
$config = $this->config;
$loader = new DefinitionsLoader($this->compiler);
- $this->registerConfigurators($builder, $config, $loader);
+
$localesDefinition = $this->registerLocales($builder, $config);
$localeProcessorDefinition = $this->registerLocaleProcessor($builder);
$translatorDefinition = $this->registerTranslator($builder, $localesDefinition, $this->registerResolver($builder, $config, $loader), $this->registerCatalogue($builder, $config, $this->registerLoader($builder, $config, $loader)), $this->registerMessageFormatter($builder), $this->registerTranslationLogger($builder), $localeProcessorDefinition);
|
Test for mutants (ubuntu-latest, 8.3):
src/Bridge/NetteDI/LocalizationExtension.php#L143
Escaped Mutant for Mutator "Foreach_":
@@ @@
private function registerConfigurators(ContainerBuilder $builder, stdClass $config, DefinitionsLoader $loader): void
{
$configuratorDefinitions = [];
- foreach ($config->configurators as $configuratorKey => $configuratorConfig) {
+ foreach ([] as $configuratorKey => $configuratorConfig) {
$configuratorDefinition = $loader->loadDefinitionFromConfig($configuratorConfig, $this->prefix('configurator.' . $configuratorKey));
$configuratorDefinitions[] = $configuratorDefinition;
}
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
12.4 KB |
|