Skip to content

Add custom exception handler and update dependencies #55

Add custom exception handler and update dependencies

Add custom exception handler and update dependencies #55

Triggered via push June 16, 2024 11:17
Status Success
Total duration 6m 42s
Artifacts

infection.yml

on: push
0️⃣ Mutation Testing
6m 34s
0️⃣ Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Compiler/AlgorithmCompilerPass.php#L19
Escaped Mutant for Mutator "LogicalNot": @@ @@ #[Override] public function process(ContainerBuilder $container): void { - if (!$container->hasDefinition(AlgorithmManagerFactory::class)) { + if ($container->hasDefinition(AlgorithmManagerFactory::class)) { return; } $definition = $container->getDefinition(AlgorithmManagerFactory::class);
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Compiler/AlgorithmCompilerPass.php#L26
Escaped Mutant for Mutator "Foreach_": @@ @@ } $definition = $container->getDefinition(AlgorithmManagerFactory::class); $taggedAlgorithmServices = $container->findTaggedServiceIds('jose.algorithm'); - foreach ($taggedAlgorithmServices as $id => $tags) { + foreach ([] as $id => $tags) { foreach ($tags as $attributes) { if (!isset($attributes['alias'])) { throw new InvalidArgumentException(sprintf('The algorithm "%s" does not have any "alias" attribute.', $id));
0️⃣ Mutation Testing: src/Library/Core/Util/Ecc/NistCurve.php#L104
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $a = BigInteger::fromBase('000001fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc', 16); $b = BigInteger::fromBase('00000051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00', 16); $x = BigInteger::fromBase('000000c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66', 16); - $y = BigInteger::fromBase('0000011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650', 16); + $y = BigInteger::fromBase('0000011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650', 17); $n = BigInteger::fromBase('000001fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409', 16); $generator = Point::create($x, $y, $n); return new Curve(521, $p, $a, $b, $generator); } }
0️⃣ Mutation Testing: src/Library/Core/Util/Ecc/NistCurve.php#L108
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $b = BigInteger::fromBase('00000051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00', 16); $x = BigInteger::fromBase('000000c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66', 16); $y = BigInteger::fromBase('0000011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650', 16); - $n = BigInteger::fromBase('000001fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409', 16); + $n = BigInteger::fromBase('000001fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409', 17); $generator = Point::create($x, $y, $n); return new Curve(521, $p, $a, $b, $generator); } }
0️⃣ Mutation Testing: src/Library/Core/Util/Ecc/NistCurve.php#L112
Escaped Mutant for Mutator "DecrementInteger": @@ @@ $y = BigInteger::fromBase('0000011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650', 16); $n = BigInteger::fromBase('000001fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409', 16); $generator = Point::create($x, $y, $n); - return new Curve(521, $p, $a, $b, $generator); + return new Curve(520, $p, $a, $b, $generator); } }
0️⃣ Mutation Testing: src/Library/Core/Util/Ecc/NistCurve.php#L112
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $y = BigInteger::fromBase('0000011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650', 16); $n = BigInteger::fromBase('000001fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409', 16); $generator = Point::create($x, $y, $n); - return new Curve(521, $p, $a, $b, $generator); + return new Curve(522, $p, $a, $b, $generator); } }
0️⃣ Mutation Testing: src/Library/Core/Util/Ecc/Point.php#L36
Escaped Mutant for Mutator "FalseValue": @@ @@ */ final readonly class Point { - private function __construct(private BigInteger $x, private BigInteger $y, private BigInteger $order, private bool $infinity = false) + private function __construct(private BigInteger $x, private BigInteger $y, private BigInteger $order, private bool $infinity = true) { } public static function create(BigInteger $x, BigInteger $y, ?BigInteger $order = null): self
0️⃣ Mutation Testing: src/Library/Core/Util/Ecc/Point.php#L42
Escaped Mutant for Mutator "Coalesce": @@ @@ } public static function create(BigInteger $x, BigInteger $y, ?BigInteger $order = null): self { - return new self($x, $y, $order ?? BigInteger::zero()); + return new self($x, $y, BigInteger::zero() ?? $order); } public static function infinity(): self {
0️⃣ Mutation Testing: src/Library/Core/Util/Ecc/Point.php#L57
Escaped Mutant for Mutator "PublicVisibility": @@ @@ { return $this->infinity; } - public function getOrder(): BigInteger + protected function getOrder(): BigInteger { return $this->order; }
0️⃣ Mutation Testing: src/Library/Core/Util/Ecc/PrivateKey.php#L36
Escaped Mutant for Mutator "PublicVisibility": @@ @@ private function __construct(private BigInteger $secret) { } - public static function create(BigInteger $secret): self + protected static function create(BigInteger $secret): self { return new self($secret); }