Updated to new exception structure #25
php.yml
on: push
tests
16s
phpstan
0s
codestyle
18s
mutation
13s
Annotations
1 error and 12 warnings
mutation
Process completed with exit code 1.
|
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v1.0.14. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
codestyle
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
mutation
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
mutation:
src/MaxDepthModule.php#L28
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
public function processNormalized(\Graphpinator\Normalizer\NormalizedRequest $request) : \Graphpinator\Normalizer\NormalizedRequest
{
foreach ($request->getOperations() as $operation) {
- $this->validateDepth(1, $operation->getSelections());
+ $this->validateDepth(0, $operation->getSelections());
}
return $request;
}
|
mutation:
src/MaxDepthModule.php#L51
Escaped Mutant for Mutator "SharedCaseRemoval":
--- Original
+++ New
@@ @@
$nextDepth = $fieldDepth + 1;
$this->validateDepth($nextDepth, $currentFieldSet);
break;
- case \Graphpinator\Normalizer\Selection\FragmentSpread::class:
// fallthrough
case \Graphpinator\Normalizer\Selection\InlineFragment::class:
$this->validateDepth($fieldDepth, $selection->getSelections());
|
mutation:
src/MaxDepthModule.php#L51
Escaped Mutant for Mutator "SharedCaseRemoval":
--- Original
+++ New
@@ @@
$this->validateDepth($nextDepth, $currentFieldSet);
break;
case \Graphpinator\Normalizer\Selection\FragmentSpread::class:
- // fallthrough
- case \Graphpinator\Normalizer\Selection\InlineFragment::class:
$this->validateDepth($fieldDepth, $selection->getSelections());
break;
}
|
mutation:
src/MaxDepthModule.php#L56
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
case \Graphpinator\Normalizer\Selection\Field::class:
$currentFieldSet = $selection->getSelections();
if ($currentFieldSet === null) {
- continue 2;
+ break;
}
$nextDepth = $fieldDepth + 1;
$this->validateDepth($nextDepth, $currentFieldSet);
|
mutation:
src/MaxNodesModule.php#L63
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
foreach ($currentArguments as $argument) {
if (\in_array($argument->getArgument()->getName(), $this->limitArgumentNames, true)) {
$argumentRawValue = $argument->getValue()->getRawValue();
- if (\is_int($argumentRawValue) && $argumentRawValue > 0) {
+ if (\is_int($argumentRawValue) && $argumentRawValue >= 0) {
$multiplier = $argumentRawValue;
break;
}
|
mutation:
src/MaxNodesModule.php#L66
Escaped Mutant for Mutator "Break_":
--- Original
+++ New
@@ @@
$argumentRawValue = $argument->getValue()->getRawValue();
if (\is_int($argumentRawValue) && $argumentRawValue > 0) {
$multiplier = $argumentRawValue;
- break;
+ continue;
}
}
}
|
mutation:
src/MaxNodesModule.php#L89
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
foreach ($selectionSet as $selection) {
$cost += match ($selection::class) {
\Graphpinator\Normalizer\Selection\Field::class => $this->countFieldCost($selection),
- \Graphpinator\Normalizer\Selection\FragmentSpread::class => $this->countFragmentSpreadCost($selection),
\Graphpinator\Normalizer\Selection\InlineFragment::class => $this->countInlineFragmentCost($selection),
};
}
|
mutation:
src/MaxNodesModule.php#L89
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
$cost += match ($selection::class) {
\Graphpinator\Normalizer\Selection\Field::class => $this->countFieldCost($selection),
\Graphpinator\Normalizer\Selection\FragmentSpread::class => $this->countFragmentSpreadCost($selection),
- \Graphpinator\Normalizer\Selection\InlineFragment::class => $this->countInlineFragmentCost($selection),
};
}
return $cost;
}
}
|
mutation:
src/MaxNodesModule.php#L89
Escaped Mutant for Mutator "Assignment":
--- Original
+++ New
@@ @@
{
$cost = 0;
foreach ($selectionSet as $selection) {
- $cost += match ($selection::class) {
+ $cost = match ($selection::class) {
\Graphpinator\Normalizer\Selection\Field::class => $this->countFieldCost($selection),
\Graphpinator\Normalizer\Selection\FragmentSpread::class => $this->countFragmentSpreadCost($selection),
\Graphpinator\Normalizer\Selection\InlineFragment::class => $this->countInlineFragmentCost($selection),
|