Skip to content

Merge Push and Consume middlewares #803

Merge Push and Consume middlewares

Merge Push and Consume middlewares #803

Triggered via pull request January 14, 2024 10:46
@xepozzxepozz
synchronize #189
middlewares
Status Success
Total duration 1m 51s
Artifacts

mutation.yml

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

Annotations

30 warnings
mutation / PHP 8.1-ubuntu-latest: src/Cli/SignalLoop.php#L27
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L27
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L30
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L30
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L33
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L33
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L53
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L56
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L56
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.1-ubuntu-latest: src/Cli/SignalLoop.php#L56
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(); }
mutation / PHP 8.2-ubuntu-latest: src/Cli/SignalLoop.php#L27
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L27
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L30
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L30
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L33
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L33
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L53
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L56
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L56
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.2-ubuntu-latest: src/Cli/SignalLoop.php#L56
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(); }
mutation / PHP 8.0-ubuntu-latest: src/Debug/QueueDecorator.php#L34
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function push(MessageInterface $message, string|array|callable|MiddlewareInterface ...$middlewareDefinitions) : MessageInterface { $message = $this->queue->push($message, ...$middlewareDefinitions); - $this->collector->collectPush($this->queue->getChannelName(), $message, ...$middlewareDefinitions); + return $message; } public function run(int $max = 0) : void
mutation / PHP 8.0-ubuntu-latest: src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L23
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ * @param mixed|object $definition * @param Throwable|null $previous */ - public function __construct(string $channel, $definition, int $code = 0, ?Throwable $previous = null) + public function __construct(string $channel, $definition, int $code = -1, ?Throwable $previous = null) { $adapterClass = AdapterInterface::class; $realType = get_debug_type($definition);
mutation / PHP 8.0-ubuntu-latest: src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L23
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ * @param mixed|object $definition * @param Throwable|null $previous */ - public function __construct(string $channel, $definition, int $code = 0, ?Throwable $previous = null) + public function __construct(string $channel, $definition, int $code = 1, ?Throwable $previous = null) { $adapterClass = AdapterInterface::class; $realType = get_debug_type($definition);
mutation / PHP 8.0-ubuntu-latest: src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L30
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $realType = get_debug_type($definition); $message = "Channel \"{$channel}\" is not properly configured: definition must return {$adapterClass}, {$realType} returned"; $this->channel = $channel; - parent::__construct($message, $code, $previous); + } public function getName() : string {
mutation / PHP 8.0-ubuntu-latest: src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L16
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ class ChannelNotConfiguredException extends InvalidArgumentException implements FriendlyExceptionInterface { private string $channel; - public function __construct(string $channel, int $code = 0, Throwable $previous = null) + public function __construct(string $channel, int $code = -1, Throwable $previous = null) { $message = "Queue channel \"{$channel}\" is not properly configured."; $this->channel = $channel;
mutation / PHP 8.0-ubuntu-latest: src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L16
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ class ChannelNotConfiguredException extends InvalidArgumentException implements FriendlyExceptionInterface { private string $channel; - public function __construct(string $channel, int $code = 0, Throwable $previous = null) + public function __construct(string $channel, int $code = 1, Throwable $previous = null) { $message = "Queue channel \"{$channel}\" is not properly configured."; $this->channel = $channel;
mutation / PHP 8.0-ubuntu-latest: src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L20
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $message = "Queue channel \"{$channel}\" is not properly configured."; $this->channel = $channel; - parent::__construct($message, $code, $previous); + } public function getName() : string {
mutation / PHP 8.0-ubuntu-latest: src/Exception/InvalidStatusException.php#L15
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ class InvalidStatusException extends InvalidArgumentException implements FriendlyExceptionInterface { private int $status; - public function __construct(int $status, string $message = '', int $code = 0, Throwable $previous = null) + public function __construct(int $status, string $message = '', int $code = -1, Throwable $previous = null) { if ($message === '') { $message = "Invalid status provided: {$status}";
mutation / PHP 8.0-ubuntu-latest: src/Exception/InvalidStatusException.php#L15
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ class InvalidStatusException extends InvalidArgumentException implements FriendlyExceptionInterface { private int $status; - public function __construct(int $status, string $message = '', int $code = 0, Throwable $previous = null) + public function __construct(int $status, string $message = '', int $code = 1, Throwable $previous = null) { if ($message === '') { $message = "Invalid status provided: {$status}";
mutation / PHP 8.0-ubuntu-latest: src/Exception/InvalidStatusException.php#L17
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ private int $status; public function __construct(int $status, string $message = '', int $code = 0, Throwable $previous = null) { - if ($message === '') { + if ($message !== '') { $message = "Invalid status provided: {$status}"; } parent::__construct($message, $code, $previous);