Skip to content

Simplify envelopes #930

Simplify envelopes

Simplify envelopes #930

Triggered via pull request November 24, 2024 15:29
Status Success
Total duration 1m 34s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L36
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ public function __construct(protected int $memorySoftLimit = 0) { foreach (self::SIGNALS_EXIT as $signal) { - pcntl_signal($signal, fn() => $this->exit = true); + pcntl_signal($signal, fn() => $this->exit = false); } foreach (self::SIGNALS_SUSPEND as $signal) { pcntl_signal($signal, fn() => $this->pause = true);
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L36
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ public function __construct(protected int $memorySoftLimit = 0) { foreach (self::SIGNALS_EXIT as $signal) { - pcntl_signal($signal, fn() => $this->exit = true); + } foreach (self::SIGNALS_SUSPEND as $signal) { pcntl_signal($signal, fn() => $this->pause = true);
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L39
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ pcntl_signal($signal, fn() => $this->exit = true); } foreach (self::SIGNALS_SUSPEND as $signal) { - pcntl_signal($signal, fn() => $this->pause = true); + pcntl_signal($signal, fn() => $this->pause = false); } foreach (self::SIGNALS_RESUME as $signal) { pcntl_signal($signal, fn() => $this->pause = false);
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L39
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ pcntl_signal($signal, fn() => $this->exit = true); } foreach (self::SIGNALS_SUSPEND as $signal) { - pcntl_signal($signal, fn() => $this->pause = true); + } foreach (self::SIGNALS_RESUME as $signal) { pcntl_signal($signal, fn() => $this->pause = false);
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L42
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ pcntl_signal($signal, fn() => $this->pause = true); } foreach (self::SIGNALS_RESUME as $signal) { - pcntl_signal($signal, fn() => $this->pause = false); + pcntl_signal($signal, fn() => $this->pause = true); } } /**
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ pcntl_signal($signal, fn() => $this->pause = true); } foreach (self::SIGNALS_RESUME as $signal) { - pcntl_signal($signal, fn() => $this->pause = false); + } } /**
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L62
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ } protected function dispatchSignals() : bool { - pcntl_signal_dispatch(); + // Wait for resume signal until loop is suspended while ($this->pause && !$this->exit) { usleep(10000);
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L65
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ { pcntl_signal_dispatch(); // Wait for resume signal until loop is suspended - while ($this->pause && !$this->exit) { + while ($this->pause && $this->exit) { usleep(10000); pcntl_signal_dispatch(); }
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L65
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ { pcntl_signal_dispatch(); // Wait for resume signal until loop is suspended - while ($this->pause && !$this->exit) { + while (!$this->pause && $this->exit) { usleep(10000); pcntl_signal_dispatch(); }
mutation / PHP 8.3-ubuntu-latest: src/Cli/SignalLoop.php#L65
Escaped Mutant for Mutator "While_": --- Original +++ New @@ @@ { pcntl_signal_dispatch(); // Wait for resume signal until loop is suspended - while ($this->pause && !$this->exit) { + while (false) { usleep(10000); pcntl_signal_dispatch(); }