Skip to content

Add native property types in Utils #533

Add native property types in Utils

Add native property types in Utils #533

Triggered via pull request January 15, 2024 20:52
Status Failure
Total duration 2m 48s
Artifacts

mutation-tests.yml

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

Annotations

1 error and 11 warnings
Mutation tests with PHP 8.1
Process completed with exit code 1.
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L85
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ // The starting delimiter. 'delimiter' => ';', // Whether `DELIMITER` statements should be parsed. - 'parse_delimiter' => false, + 'parse_delimiter' => true, // Whether a delimiter should be added at the end of the statement. 'add_delimiter' => false, ], $options);
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L87
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ // Whether `DELIMITER` statements should be parsed. 'parse_delimiter' => false, // Whether a delimiter should be added at the end of the statement. - 'add_delimiter' => false, + 'add_delimiter' => true, ], $options); $this->query = $query; $this->setDelimiter($this->options['delimiter']);
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L101
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ * * Used to update the length of it too. */ - public function setDelimiter(string $delimiter) : void + protected function setDelimiter(string $delimiter) : void { $this->delimiter = $delimiter; $this->delimiterLen = strlen($delimiter);
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L152
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ * Those extra characters are required only if there is more data * expected (the end of the buffer was not reached). */ - $loopLen = $end ? $len : $len - 16; + $loopLen = $end ? $len : $len - 15; for (; $i < $loopLen; ++$i) { /* * Handling backslash.
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L152
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ * Those extra characters are required only if there is more data * expected (the end of the buffer was not reached). */ - $loopLen = $end ? $len : $len - 16; + $loopLen = $end ? $len : $len - 17; for (; $i < $loopLen; ++$i) { /* * Handling backslash.
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L163
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ * be ignored. */ if (($this->status & self::STATUS_COMMENT) === 0 && $this->query[$i] === '\\') { - $this->current .= $this->query[$i] . ($i + 1 < $len ? $this->query[++$i] : ''); + $this->current .= $this->query[$i] . ($i + 2 < $len ? $this->query[++$i] : ''); continue; } /*
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L173
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if ($this->status === self::STATUS_STRING_SINGLE_QUOTES) { // Single-quoted strings like 'foo'. if ($this->query[$i] === '\'') { - $this->status = 0; + $this->status = -1; } $this->current .= $this->query[$i]; continue;
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L183
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if ($this->status === self::STATUS_STRING_DOUBLE_QUOTES) { // Double-quoted strings like "bar". if ($this->query[$i] === '"') { - $this->status = 0; + $this->status = -1; } $this->current .= $this->query[$i]; continue;
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L191
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ continue; } if ($this->status === self::STATUS_STRING_BACKTICK) { - if ($this->query[$i] === '`') { + if ($this->query[$i] !== '`') { $this->status = 0; } $this->current .= $this->query[$i];
Mutation tests with PHP 8.1: src/Utils/BufferedQuery.php#L192
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } if ($this->status === self::STATUS_STRING_BACKTICK) { if ($this->query[$i] === '`') { - $this->status = 0; + $this->status = -1; } $this->current .= $this->query[$i]; continue;
Mutation tests with PHP 8.1
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/