Skip to content

Stability++

Stability++ #219

Triggered via pull request October 4, 2024 16:17
Status Success
Total duration 4m 2s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 warnings
server-tests: server/src/Core/Game.php#L466
Escaped Mutant for Mutator "Assignment": @@ @@ RoundEndReason::TIME_RUNS_OUT, RoundEndReason::BOMB_DEFUSED => GameException::invalid((string) $roundEndEvent->reason->value), }; } elseif ($this->bombPlanted || !$player->isAlive()) { - $amount += $this->score->getMoneyLossBonus(true); + $amount = $this->score->getMoneyLossBonus(true); } return $amount; }
server-tests: server/src/Core/PathFinder.php#L155
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } $prevNavmesh = $navmesh->hash(); $navmesh->setFrom($candidate); - $this->convertToNavMeshNode($navmesh); + if ($this->getGraph()->getNodeById($navmesh->hash())) { return $navmesh; }
server-tests: server/src/Core/PathFinder.php#L206
Escaped Mutant for Mutator "Coalesce": @@ @@ } $this->visited[$currentKey] = true; $currentNodeOrNull = $this->graph->getNodeById($currentKey); - $currentNode = $currentNodeOrNull ?? new Node($currentKey, $current); + $currentNode = new Node($currentKey, $current) ?? $currentNodeOrNull; $hasNeighbour = false; foreach ($this->moves as $angle => $move) { $candidate->setFrom($current);
server-tests: server/src/Core/PathFinder.php#L220
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $newNode = $this->graph->getNodeById($newNeighbour->hash()); if ($newNode === null) { $newNode = new Node($newNeighbour->hash(), $newNeighbour); - $this->graph->addNode($newNode); + } $this->graph->addEdge(new DirectedEdge($currentNode, $newNode, 1)); $queue->enqueue($newNeighbour);
server-tests: server/src/Event/ThrowEvent.php#L83
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ return; } if ($this->tickMax > 0) { - $point->addY(-$this->radius); + $this->tickMax = 0; } for ($i = 1; $i <= ceil(Util::GRAVITY * 2); $i++) {