Skip to content

Lock file maintenance #1111

Lock file maintenance

Lock file maintenance #1111

Triggered via push January 31, 2025 01:08
Status Success
Total duration 1m 14s
Artifacts
Matrix: Mutation tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation tests (locked, 8.4, ubuntu-latest): src/Bytes.php#L33
Escaped Mutant for Mutator "PregMatchRemoveDollar": @@ @@ } public static function parseFromString(string $string): self { - if (!preg_match('/^([0-9]+)([a-z]+)?$/i', $string, $matches)) { + if (!preg_match('/^([0-9]+)([a-z]+)?/i', $string, $matches)) { throw new InvalidFormat($string); } $number = (int) $matches[1];
Mutation tests (locked, 8.4, ubuntu-latest): src/Bytes.php#L37
Escaped Mutant for Mutator "DecrementInteger": @@ @@ if (!preg_match('/^([0-9]+)([a-z]+)?$/i', $string, $matches)) { throw new InvalidFormat($string); } - $number = (int) $matches[1]; + $number = (int) $matches[0]; $unit = strtoupper($matches[2] ?? 'B'); if (!array_key_exists($unit, self::SIZES)) { throw new InvalidFormat($string);
Mutation tests (locked, 8.4, ubuntu-latest): src/InvalidFormat.php#L15
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { public function __construct(string $message) { - parent::__construct(sprintf('Invalid byte format received (got: "%s"). The format must consist of a number and a unit. The following units are allowed: B, KB, MB, GB', $message)); + } }
Mutation tests (locked, 8.4, ubuntu-latest): src/Listener/StopWorkerOnIterationLimitListener.php#L40
Escaped Mutant for Mutator "ArrayItem": @@ @@ return; } $event->worker->stop(); - $this->logger?->info('Worker stopped due to maximum iteration of {count}', ['count' => $this->maximumNumberOfIteration]); + $this->logger?->info('Worker stopped due to maximum iteration of {count}', ['count' > $this->maximumNumberOfIteration]); } /** @return array<class-string, string> */ public static function getSubscribedEvents(): array
Mutation tests (locked, 8.4, ubuntu-latest): src/Listener/StopWorkerOnIterationLimitListener.php#L40
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ return; } $event->worker->stop(); - $this->logger?->info('Worker stopped due to maximum iteration of {count}', ['count' => $this->maximumNumberOfIteration]); + $this->logger?->info('Worker stopped due to maximum iteration of {count}', []); } /** @return array<class-string, string> */ public static function getSubscribedEvents(): array
Mutation tests (locked, 8.4, ubuntu-latest): src/Listener/StopWorkerOnMemoryLimitListener.php#L26
Escaped Mutant for Mutator "LessThanOrEqualTo": @@ @@ public function onWorkerRunning(WorkerRunningEvent $event): void { $usedMemory = $this->usedMemory(); - if ($usedMemory->value() <= $this->memoryLimit->value()) { + if ($usedMemory->value() < $this->memoryLimit->value()) { return; } $this->logger?->info('Worker stopped due to memory limit of {limit} bytes exceeded ({memory} bytes used)', ['limit' => $this->memoryLimit->formatted(), 'memory' => $usedMemory->formatted()]);
Mutation tests (locked, 8.4, ubuntu-latest): src/Listener/StopWorkerOnMemoryLimitListener.php#L32
Escaped Mutant for Mutator "ArrayItem": @@ @@ if ($usedMemory->value() <= $this->memoryLimit->value()) { return; } - $this->logger?->info('Worker stopped due to memory limit of {limit} bytes exceeded ({memory} bytes used)', ['limit' => $this->memoryLimit->formatted(), 'memory' => $usedMemory->formatted()]); + $this->logger?->info('Worker stopped due to memory limit of {limit} bytes exceeded ({memory} bytes used)', ['limit' > $this->memoryLimit->formatted(), 'memory' => $usedMemory->formatted()]); $event->worker->stop(); } private function usedMemory(): Bytes
Mutation tests (locked, 8.4, ubuntu-latest): src/Listener/StopWorkerOnMemoryLimitListener.php#L32
Escaped Mutant for Mutator "ArrayItem": @@ @@ if ($usedMemory->value() <= $this->memoryLimit->value()) { return; } - $this->logger?->info('Worker stopped due to memory limit of {limit} bytes exceeded ({memory} bytes used)', ['limit' => $this->memoryLimit->formatted(), 'memory' => $usedMemory->formatted()]); + $this->logger?->info('Worker stopped due to memory limit of {limit} bytes exceeded ({memory} bytes used)', ['limit' => $this->memoryLimit->formatted(), 'memory' > $usedMemory->formatted()]); $event->worker->stop(); } private function usedMemory(): Bytes
Mutation tests (locked, 8.4, ubuntu-latest): src/Listener/StopWorkerOnMemoryLimitListener.php#L32
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ if ($usedMemory->value() <= $this->memoryLimit->value()) { return; } - $this->logger?->info('Worker stopped due to memory limit of {limit} bytes exceeded ({memory} bytes used)', ['limit' => $this->memoryLimit->formatted(), 'memory' => $usedMemory->formatted()]); + $this->logger?->info('Worker stopped due to memory limit of {limit} bytes exceeded ({memory} bytes used)', ['memory' => $usedMemory->formatted()]); $event->worker->stop(); } private function usedMemory(): Bytes
Mutation tests (locked, 8.4, ubuntu-latest): src/Listener/StopWorkerOnTimeLimitListener.php#L32
Escaped Mutant for Mutator "GreaterThanOrEqualTo": @@ @@ } public function onWorkerRunning(WorkerRunningEvent $event): void { - if ($this->endTime >= time()) { + if ($this->endTime > time()) { return; } $event->worker->stop();