Skip to content

Release 0.5.3

Release 0.5.3 #30

Triggered via push February 12, 2024 15:01
Status Success
Total duration 5m 25s
Artifacts

build.yml

on: push
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

60 warnings
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Command/OutputCommand.php#L17
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public function exec() : void { $this->runtime->outputData(); - $this->runtime->shiftCommandIndex(1); + $this->runtime->shiftCommandIndex(0); } }
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Command/OutputCommand.php#L17
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function exec() : void { $this->runtime->outputData(); - $this->runtime->shiftCommandIndex(1); + } }
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Interpreter.php#L53
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $tokenReader = new TokenReader($buffer, new TokenMatcher(), new TokenFactory($grammar)); $translator = new TranslationSchemeApplier(new TranslationScheme($runtime)); $parser = new Parser($grammar, $tokenReader, $translator); - $parser->loadLookupTable(__DIR__ . "/Grammar/LookupTable.php"); + return $parser; } }
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Runtime.php#L39
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if (0 >= $memory) { throw new Exception("Memory amount must be positive"); } - $this->dataList = array_fill(0, $this->memory, 0); + $this->dataList = array_fill(-1, $this->memory, 0); } public function getOutput() : string {
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Runtime.php#L80
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ * @param int $index * @throws Exception */ - public function setCommandIndex(int $index) : void + protected function setCommandIndex(int $index) : void { if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) { throw new Exception("Failed to move command pointer to position {$index}");
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Runtime.php#L82
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ */ public function setCommandIndex(int $index) : void { - if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) { + if (isset($this->commandList[$index]) && $index != $this->nextCommandIndex) { throw new Exception("Failed to move command pointer to position {$index}"); } $this->commandIndex = $index;
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Runtime.php#L82
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ */ public function setCommandIndex(int $index) : void { - if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) { + if (isset($this->commandList[$index]) && !($index != $this->nextCommandIndex)) { throw new Exception("Failed to move command pointer to position {$index}"); } $this->commandIndex = $index;
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Runtime.php#L94
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function shiftCommandIndex(int $index) : void { - $this->setCommandIndex($this->commandIndex + $index); + } public function isValueZero() : bool {
tests (use-platform-reqs, 8.3, lowest): examples/Brainfuck/src/Runtime.php#L104
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ } public function outputData() : void { - $this->output .= chr($this->dataList[$this->dataIndex]); + $this->output = chr($this->dataList[$this->dataIndex]); } /** * @throws Exception
tests (use-platform-reqs, 8.3, lowest): examples/SimpleExpr/src/Grammar/ConfigFile.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ { public static function getPath() : string { - return __DIR__ . "/Config.php"; + return "/Config.php"; } }
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Command/OutputCommand.php#L17
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public function exec() : void { $this->runtime->outputData(); - $this->runtime->shiftCommandIndex(1); + $this->runtime->shiftCommandIndex(0); } }
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Command/OutputCommand.php#L17
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function exec() : void { $this->runtime->outputData(); - $this->runtime->shiftCommandIndex(1); + } }
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Interpreter.php#L53
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $tokenReader = new TokenReader($buffer, new TokenMatcher(), new TokenFactory($grammar)); $translator = new TranslationSchemeApplier(new TranslationScheme($runtime)); $parser = new Parser($grammar, $tokenReader, $translator); - $parser->loadLookupTable(__DIR__ . "/Grammar/LookupTable.php"); + return $parser; } }
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Runtime.php#L39
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if (0 >= $memory) { throw new Exception("Memory amount must be positive"); } - $this->dataList = array_fill(0, $this->memory, 0); + $this->dataList = array_fill(-1, $this->memory, 0); } public function getOutput() : string {
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Runtime.php#L80
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ * @param int $index * @throws Exception */ - public function setCommandIndex(int $index) : void + protected function setCommandIndex(int $index) : void { if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) { throw new Exception("Failed to move command pointer to position {$index}");
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Runtime.php#L82
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ */ public function setCommandIndex(int $index) : void { - if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) { + if (isset($this->commandList[$index]) && $index != $this->nextCommandIndex) { throw new Exception("Failed to move command pointer to position {$index}"); } $this->commandIndex = $index;
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Runtime.php#L82
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ */ public function setCommandIndex(int $index) : void { - if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) { + if (isset($this->commandList[$index]) && !($index != $this->nextCommandIndex)) { throw new Exception("Failed to move command pointer to position {$index}"); } $this->commandIndex = $index;
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Runtime.php#L94
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function shiftCommandIndex(int $index) : void { - $this->setCommandIndex($this->commandIndex + $index); + } public function isValueZero() : bool {
tests (use-platform-reqs, 8.3, highest): examples/Brainfuck/src/Runtime.php#L104
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ } public function outputData() : void { - $this->output .= chr($this->dataList[$this->dataIndex]); + $this->output = chr($this->dataList[$this->dataIndex]); } /** * @throws Exception
tests (use-platform-reqs, 8.3, highest): examples/SimpleExpr/src/Grammar/ConfigFile.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ { public static function getPath() : string { - return __DIR__ . "/Config.php"; + return "/Config.php"; } }
tests (use-platform-reqs, 8.2, lowest): src/AST/Symbol.php#L40
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ */ public function getSymbol() : Node { - return $this->symbol ??= $this->getHeader()->getChild($this->getIndex()); + return $this->symbol = $this->getHeader()->getChild($this->getIndex()); } }
tests (use-platform-reqs, 8.2, lowest): src/AST/Translator.php#L26
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function run() : void { - $this->stack->reset(); + $rootNode = $this->tree->getRootNode(); $this->listener->onStart($rootNode); $this->stack->push($rootNode);
tests (use-platform-reqs, 8.2, lowest): src/AST/Translator.php#L28
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $this->stack->reset(); $rootNode = $this->tree->getRootNode(); - $this->listener->onStart($rootNode); + $this->stack->push($rootNode); while (!$this->stack->isEmpty()) { $symbol = $this->stack->pop();
tests (use-platform-reqs, 8.2, lowest): src/AST/Translator.php#L37
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ } elseif ($symbol instanceof Node) { $this->stack->push(new EopSymbol($symbol)); $this->listener->onBeginProduction($symbol, $this->stack); - } elseif ($symbol instanceof Symbol) { + } elseif (true) { $this->listener->onSymbol($symbol, $this->stack); } }
tests (use-platform-reqs, 8.2, lowest): src/AST/Translator.php#L41
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->listener->onSymbol($symbol, $this->stack); } } - $this->listener->onFinish(); + } }
tests (use-platform-reqs, 8.2, lowest): src/AST/Tree.php#L22
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ private ?int $rootNodeId = null; public function createNode(string $name, int $id = null) : Node { - $node = new Node($id ?? $this->getNextNodeId(), $name); + $node = new Node($this->getNextNodeId() ?? $id, $name); $this->nodeMap[$node->getId()] = $node; return $node; }
tests (use-platform-reqs, 8.2, lowest): src/AST/Tree.php#L61
Escaped Mutant for Mutator "Increment": --- Original +++ New @@ @@ } private function getNextNodeId() : int { - return $this->nextNodeId++; + return $this->nextNodeId--; } }
tests (use-platform-reqs, 8.2, lowest): src/Grammar/ContextFree/Grammar.php#L177
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ $productionList[] = $production; } } - return $productionList; + return count($productionList) > 1 ? array_slice($productionList, 0, 1, true) : $productionList; } }
tests (use-platform-reqs, 8.2, lowest): src/Grammar/ContextFree/Production.php#L23
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ private array $symbolList; public function __construct(private readonly int $headerId, private readonly int $index, int ...$symbolList) { - $this->symbolList = array_values($symbolList); + $this->symbolList = $symbolList; } public function __toString() : string {
tests (use-platform-reqs, 8.2, lowest): src/Grammar/ContextFree/TokenFactory.php#L27
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ { return $this->createToken($this->grammar->getEoiToken()); } - protected function isEoi(int $tokenId) : bool + private function isEoi(int $tokenId) : bool { return $this->grammar->isEoiToken($tokenId); } }
tests (use-platform-reqs, 8.2, highest): src/AST/Symbol.php#L40
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ */ public function getSymbol() : Node { - return $this->symbol ??= $this->getHeader()->getChild($this->getIndex()); + return $this->symbol = $this->getHeader()->getChild($this->getIndex()); } }
tests (use-platform-reqs, 8.2, highest): src/AST/Translator.php#L26
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function run() : void { - $this->stack->reset(); + $rootNode = $this->tree->getRootNode(); $this->listener->onStart($rootNode); $this->stack->push($rootNode);
tests (use-platform-reqs, 8.2, highest): src/AST/Translator.php#L28
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $this->stack->reset(); $rootNode = $this->tree->getRootNode(); - $this->listener->onStart($rootNode); + $this->stack->push($rootNode); while (!$this->stack->isEmpty()) { $symbol = $this->stack->pop();
tests (use-platform-reqs, 8.2, highest): src/AST/Translator.php#L37
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ } elseif ($symbol instanceof Node) { $this->stack->push(new EopSymbol($symbol)); $this->listener->onBeginProduction($symbol, $this->stack); - } elseif ($symbol instanceof Symbol) { + } elseif (true) { $this->listener->onSymbol($symbol, $this->stack); } }
tests (use-platform-reqs, 8.2, highest): src/AST/Translator.php#L41
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->listener->onSymbol($symbol, $this->stack); } } - $this->listener->onFinish(); + } }
tests (use-platform-reqs, 8.2, highest): src/AST/Tree.php#L22
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ private ?int $rootNodeId = null; public function createNode(string $name, int $id = null) : Node { - $node = new Node($id ?? $this->getNextNodeId(), $name); + $node = new Node($this->getNextNodeId() ?? $id, $name); $this->nodeMap[$node->getId()] = $node; return $node; }
tests (use-platform-reqs, 8.2, highest): src/AST/Tree.php#L61
Escaped Mutant for Mutator "Increment": --- Original +++ New @@ @@ } private function getNextNodeId() : int { - return $this->nextNodeId++; + return $this->nextNodeId--; } }
tests (use-platform-reqs, 8.2, highest): src/Grammar/ContextFree/Grammar.php#L177
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ $productionList[] = $production; } } - return $productionList; + return count($productionList) > 1 ? array_slice($productionList, 0, 1, true) : $productionList; } }
tests (use-platform-reqs, 8.2, highest): src/Grammar/ContextFree/Production.php#L23
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ private array $symbolList; public function __construct(private readonly int $headerId, private readonly int $index, int ...$symbolList) { - $this->symbolList = array_values($symbolList); + $this->symbolList = $symbolList; } public function __toString() : string {
tests (use-platform-reqs, 8.2, highest): src/Grammar/ContextFree/TokenFactory.php#L27
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ { return $this->createToken($this->grammar->getEoiToken()); } - protected function isEoi(int $tokenId) : bool + private function isEoi(int $tokenId) : bool { return $this->grammar->isEoiToken($tokenId); } }
tests (use-platform-reqs, 8.1, highest): src/AST/Symbol.php#L40
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ */ public function getSymbol() : Node { - return $this->symbol ??= $this->getHeader()->getChild($this->getIndex()); + return $this->symbol = $this->getHeader()->getChild($this->getIndex()); } }
tests (use-platform-reqs, 8.1, highest): src/AST/Translator.php#L26
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function run() : void { - $this->stack->reset(); + $rootNode = $this->tree->getRootNode(); $this->listener->onStart($rootNode); $this->stack->push($rootNode);
tests (use-platform-reqs, 8.1, highest): src/AST/Translator.php#L28
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $this->stack->reset(); $rootNode = $this->tree->getRootNode(); - $this->listener->onStart($rootNode); + $this->stack->push($rootNode); while (!$this->stack->isEmpty()) { $symbol = $this->stack->pop();
tests (use-platform-reqs, 8.1, highest): src/AST/Translator.php#L37
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ } elseif ($symbol instanceof Node) { $this->stack->push(new EopSymbol($symbol)); $this->listener->onBeginProduction($symbol, $this->stack); - } elseif ($symbol instanceof Symbol) { + } elseif (true) { $this->listener->onSymbol($symbol, $this->stack); } }
tests (use-platform-reqs, 8.1, highest): src/AST/Translator.php#L41
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->listener->onSymbol($symbol, $this->stack); } } - $this->listener->onFinish(); + } }
tests (use-platform-reqs, 8.1, highest): src/AST/Tree.php#L22
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ private ?int $rootNodeId = null; public function createNode(string $name, int $id = null) : Node { - $node = new Node($id ?? $this->getNextNodeId(), $name); + $node = new Node($this->getNextNodeId() ?? $id, $name); $this->nodeMap[$node->getId()] = $node; return $node; }
tests (use-platform-reqs, 8.1, highest): src/AST/Tree.php#L61
Escaped Mutant for Mutator "Increment": --- Original +++ New @@ @@ } private function getNextNodeId() : int { - return $this->nextNodeId++; + return $this->nextNodeId--; } }
tests (use-platform-reqs, 8.1, highest): src/Grammar/ContextFree/Grammar.php#L177
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ $productionList[] = $production; } } - return $productionList; + return count($productionList) > 1 ? array_slice($productionList, 0, 1, true) : $productionList; } }
tests (use-platform-reqs, 8.1, highest): src/Grammar/ContextFree/Production.php#L23
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ private array $symbolList; public function __construct(private readonly int $headerId, private readonly int $index, int ...$symbolList) { - $this->symbolList = array_values($symbolList); + $this->symbolList = $symbolList; } public function __toString() : string {
tests (use-platform-reqs, 8.1, highest): src/Grammar/ContextFree/TokenFactory.php#L27
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ { return $this->createToken($this->grammar->getEoiToken()); } - protected function isEoi(int $tokenId) : bool + private function isEoi(int $tokenId) : bool { return $this->grammar->isEoiToken($tokenId); } }
tests (use-platform-reqs, 8.1, lowest): src/AST/Symbol.php#L40
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ */ public function getSymbol() : Node { - return $this->symbol ??= $this->getHeader()->getChild($this->getIndex()); + return $this->symbol = $this->getHeader()->getChild($this->getIndex()); } }
tests (use-platform-reqs, 8.1, lowest): src/AST/Translator.php#L26
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ */ public function run() : void { - $this->stack->reset(); + $rootNode = $this->tree->getRootNode(); $this->listener->onStart($rootNode); $this->stack->push($rootNode);
tests (use-platform-reqs, 8.1, lowest): src/AST/Translator.php#L28
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $this->stack->reset(); $rootNode = $this->tree->getRootNode(); - $this->listener->onStart($rootNode); + $this->stack->push($rootNode); while (!$this->stack->isEmpty()) { $symbol = $this->stack->pop();
tests (use-platform-reqs, 8.1, lowest): src/AST/Translator.php#L37
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ } elseif ($symbol instanceof Node) { $this->stack->push(new EopSymbol($symbol)); $this->listener->onBeginProduction($symbol, $this->stack); - } elseif ($symbol instanceof Symbol) { + } elseif (true) { $this->listener->onSymbol($symbol, $this->stack); } }
tests (use-platform-reqs, 8.1, lowest): src/AST/Translator.php#L41
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->listener->onSymbol($symbol, $this->stack); } } - $this->listener->onFinish(); + } }
tests (use-platform-reqs, 8.1, lowest): src/AST/Tree.php#L22
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ private ?int $rootNodeId = null; public function createNode(string $name, int $id = null) : Node { - $node = new Node($id ?? $this->getNextNodeId(), $name); + $node = new Node($this->getNextNodeId() ?? $id, $name); $this->nodeMap[$node->getId()] = $node; return $node; }
tests (use-platform-reqs, 8.1, lowest): src/AST/Tree.php#L61
Escaped Mutant for Mutator "Increment": --- Original +++ New @@ @@ } private function getNextNodeId() : int { - return $this->nextNodeId++; + return $this->nextNodeId--; } }
tests (use-platform-reqs, 8.1, lowest): src/Grammar/ContextFree/Grammar.php#L177
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ $productionList[] = $production; } } - return $productionList; + return count($productionList) > 1 ? array_slice($productionList, 0, 1, true) : $productionList; } }
tests (use-platform-reqs, 8.1, lowest): src/Grammar/ContextFree/Production.php#L23
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ private array $symbolList; public function __construct(private readonly int $headerId, private readonly int $index, int ...$symbolList) { - $this->symbolList = array_values($symbolList); + $this->symbolList = $symbolList; } public function __toString() : string {
tests (use-platform-reqs, 8.1, lowest): src/Grammar/ContextFree/TokenFactory.php#L27
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ { return $this->createToken($this->grammar->getEoiToken()); } - protected function isEoi(int $tokenId) : bool + private function isEoi(int $tokenId) : bool { return $this->grammar->isEoiToken($tokenId); } }