Skip to content

FormMonitorPanel: render unconditionally #200

FormMonitorPanel: render unconditionally

FormMonitorPanel: render unconditionally #200

Triggered via push October 28, 2023 23:38
Status Success
Total duration 3m 32s
Artifacts 1

ci.yaml

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

Annotations

10 warnings
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/SignalFormExtractor.php#L25
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ public function extractForm(Presenter $presenter) : void { $signal = $presenter->getSignal(); - if ($signal === null || count($signal) < 2) { + if ($signal === null || count($signal) <= 2) { return; } array_pop($signal);
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/SignalFormExtractor.php#L25
Escaped Mutant for Mutator "LessThanNegotiation": --- Original +++ New @@ @@ public function extractForm(Presenter $presenter) : void { $signal = $presenter->getSignal(); - if ($signal === null || count($signal) < 2) { + if ($signal === null || count($signal) >= 2) { return; } array_pop($signal);
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/Tracy/FormMonitorPanel.php#L53
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ private function getErrors() : array { $errors = []; - foreach ($this->formStack->getAll() as $name => $form) { + foreach (array() as $name => $form) { $formErrors = $this->errorExtractor->getErrors($form); if ($formErrors !== []) { $errors[$name] = $formErrors;
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/Tracy/FormMonitorPanel.php#L56
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ $errors = []; foreach ($this->formStack->getAll() as $name => $form) { $formErrors = $this->errorExtractor->getErrors($form); - if ($formErrors !== []) { + if ($formErrors === []) { $errors[$name] = $formErrors; } }
Test for mutants (ubuntu-latest, 8.1): src/FormMonitor/Tracy/FormMonitorPanel.php#L61
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ $errors[$name] = $formErrors; } } - return $errors; + return count($errors) > 1 ? array_slice($errors, 0, 1, true) : $errors; } }
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L31
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ private ServiceDefinition $inspectorDefinition; public function getConfigSchema() : Schema { - return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(false)]); + return Expect::structure(['_dev' => Expect::bool(true), 'enabled' => Expect::bool(false)]); } public function loadConfiguration() : void {
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L32
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ private ServiceDefinition $inspectorDefinition; public function getConfigSchema() : Schema { - return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(false)]); + return Expect::structure(['_dev' => Expect::bool(false), 'enabled' => Expect::bool(true)]); } public function loadConfiguration() : void {
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L38
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function loadConfiguration() : void { - parent::loadConfiguration(); + $builder = $this->getContainerBuilder(); $config = $this->config; if (!$config->enabled) {
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L49
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ if (!$config->enabled) { return; } - $this->inspectorDefinition = $builder->addDefinition($this->prefix('inspector'))->setFactory(Inspector::class)->setAutowired(false); + $this->inspectorDefinition = $builder->addDefinition($this->prefix('inspector'))->setFactory(Inspector::class)->setAutowired(true); } public function beforeCompile() : void {
Test for mutants (ubuntu-latest, 8.1): src/Inspector/DI/InspectorExtension.php#L54
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function beforeCompile() : void { - parent::beforeCompile(); + $builder = $this->getContainerBuilder(); $config = $this->config; if (!$config->enabled) {

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
162 KB