Skip to content

OrderSortKeyword enum #629

OrderSortKeyword enum

OrderSortKeyword enum #629

Triggered via pull request November 5, 2024 22:59
Status Success
Total duration 1m 4s
Artifacts

mutation-tests.yml

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

Annotations

10 warnings
Mutation tests with PHP 8.2
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Mutation tests with PHP 8.2
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/
Mutation tests with PHP 8.2: src/Parsers/GroupKeywords.php#L46
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ * 1 -------------------[ ASC / DESC ]--------------------> 1 */ $state = 0; - for (; $list->idx < $list->count; ++$list->idx) { + for (; $list->idx <= $list->count; ++$list->idx) { /** * Token parsed at this moment. */
Mutation tests with PHP 8.2: src/Parsers/GroupKeywords.php#L58
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ break; } // Skipping whitespaces and comments. - if ($token->type === TokenType::Whitespace || $token->type === TokenType::Comment) { + if ($token->type === TokenType::Whitespace && $token->type === TokenType::Comment) { continue; } if ($state === 0) {
Mutation tests with PHP 8.2: src/Parsers/GroupKeywords.php#L64
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } if ($state === 0) { $expr->expr = Expressions::parse($parser, $list); - $state = 1; + $state = 2; } else { if ($token->type === TokenType::Keyword && ($token->keyword === 'ASC' || $token->keyword === 'DESC')) { $expr->type = OrderSortKeyword::from($token->keyword);
Mutation tests with PHP 8.2: src/Parsers/GroupKeywords.php#L71
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } else { if ($token->type === TokenType::Keyword && ($token->keyword === 'ASC' || $token->keyword === 'DESC')) { $expr->type = OrderSortKeyword::from($token->keyword); - } elseif ($token->type === TokenType::Operator && $token->value === ',') { + } elseif ($token->type === TokenType::Operator || $token->value === ',') { if (!empty($expr->expr)) { $ret[] = $expr; }
Mutation tests with PHP 8.2: src/Parsers/OrderKeywords.php#L46
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ * 1 -------------------[ ASC / DESC ]--------------------> 1 */ $state = 0; - for (; $list->idx < $list->count; ++$list->idx) { + for (; $list->idx <= $list->count; ++$list->idx) { /** * Token parsed at this moment. */
Mutation tests with PHP 8.2: src/Parsers/OrderKeywords.php#L58
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ break; } // Skipping whitespaces and comments. - if ($token->type === TokenType::Whitespace || $token->type === TokenType::Comment) { + if ($token->type === TokenType::Whitespace && $token->type === TokenType::Comment) { continue; } if ($state === 0) {
Mutation tests with PHP 8.2: src/Parsers/OrderKeywords.php#L64
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } if ($state === 0) { $expr->expr = Expressions::parse($parser, $list); - $state = 1; + $state = 2; } else { if ($token->type === TokenType::Keyword && ($token->keyword === 'ASC' || $token->keyword === 'DESC')) { $expr->type = OrderSortKeyword::from($token->keyword);
Mutation tests with PHP 8.2: src/Parsers/OrderKeywords.php#L71
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } else { if ($token->type === TokenType::Keyword && ($token->keyword === 'ASC' || $token->keyword === 'DESC')) { $expr->type = OrderSortKeyword::from($token->keyword); - } elseif ($token->type === TokenType::Operator && $token->value === ',') { + } elseif ($token->type === TokenType::Operator || $token->value === ',') { if (!empty($expr->expr)) { $ret[] = $expr; }