Skip to content

Update tests according to the main PR #1213

Update tests according to the main PR

Update tests according to the main PR #1213

Triggered via push April 28, 2024 05:21
Status Success
Total duration 38m 4s
Artifacts

mutation.yml

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

Annotations

11 warnings
PHP 8.1-sqlite-ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L105
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $token[] = (new SqlToken())->type(SqlToken::TYPE_STATEMENT); $this->tokenStack->push($token[0]); $this->currentToken = $this->tokenStack->top(); - $length = 0; + $length = -1; while (!$this->isEof()) { if ($this->isWhitespace($length) || $this->isComment($length)) { $this->addTokenFromBuffer();
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L126
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $this->buffer .= $this->substring(1); $this->advance(1); } - $this->addTokenFromBuffer(); + if ($token->getHasChildren() && $token[-1] instanceof SqlToken && !$token[-1]->getHasChildren()) { unset($token[-1]); }
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L332
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if (!$isIdentifier && !$isStringLiteral) { return false; } - $this->addTokenFromBuffer(); + $this->currentToken[] = (new SqlToken())->type($isIdentifier ? SqlToken::TYPE_IDENTIFIER : SqlToken::TYPE_STRING_LITERAL)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); return true; }
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L335
Escaped Mutant for Mutator "Ternary": --- Original +++ New @@ @@ return false; } $this->addTokenFromBuffer(); - $this->currentToken[] = (new SqlToken())->type($isIdentifier ? SqlToken::TYPE_IDENTIFIER : SqlToken::TYPE_STRING_LITERAL)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); + $this->currentToken[] = (new SqlToken())->type($isIdentifier ? SqlToken::TYPE_STRING_LITERAL : SqlToken::TYPE_IDENTIFIER)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); return true; } /**
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L336
Escaped Mutant for Mutator "Ternary": --- Original +++ New @@ @@ return false; } $this->addTokenFromBuffer(); - $this->currentToken[] = (new SqlToken())->type($isIdentifier ? SqlToken::TYPE_IDENTIFIER : SqlToken::TYPE_STRING_LITERAL)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); + $this->currentToken[] = (new SqlToken())->type($isIdentifier ? SqlToken::TYPE_IDENTIFIER : SqlToken::TYPE_STRING_LITERAL)->content(is_string($content) ? $this->substring($length) : $content)->startOffset($this->offset)->endOffset($this->offset + $length); return true; } /**
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L340
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ } $this->addTokenFromBuffer(); $this->currentToken[] = (new SqlToken())->type($isIdentifier ? SqlToken::TYPE_IDENTIFIER : SqlToken::TYPE_STRING_LITERAL)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); - return true; + return false; } /** * Determines whether there is an operator at the current offset and adds it to the token children.
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L358
Escaped Mutant for Mutator "Ternary": --- Original +++ New @@ @@ $this->addTokenFromBuffer(); switch ($this->substring($length)) { case '(': - $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_OPERATOR)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); + $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_OPERATOR)->content(is_string($content) ? $this->substring($length) : $content)->startOffset($this->offset)->endOffset($this->offset + $length); $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_PARENTHESIS); if ($this->currentToken[-1] !== null) { $this->tokenStack->push($this->currentToken[-1]);
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L360
Escaped Mutant for Mutator "Plus": --- Original +++ New @@ @@ $this->addTokenFromBuffer(); switch ($this->substring($length)) { case '(': - $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_OPERATOR)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); + $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_OPERATOR)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset - $length); $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_PARENTHESIS); if ($this->currentToken[-1] !== null) { $this->tokenStack->push($this->currentToken[-1]);
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L363
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ case '(': $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_OPERATOR)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_PARENTHESIS); - if ($this->currentToken[-1] !== null) { + if ($this->currentToken[-2] !== null) { $this->tokenStack->push($this->currentToken[-1]); } $this->currentToken = $this->tokenStack->top();
PHP 8.1-sqlite-ubuntu-latest: src/AbstractTokenizer.php#L363
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ case '(': $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_OPERATOR)->content(is_string($content) ? $content : $this->substring($length))->startOffset($this->offset)->endOffset($this->offset + $length); $this->currentToken[] = (new SqlToken())->type(SqlToken::TYPE_PARENTHESIS); - if ($this->currentToken[-1] !== null) { + if ($this->currentToken[-0] !== null) { $this->tokenStack->push($this->currentToken[-1]); } $this->currentToken = $this->tokenStack->top();