Skip to content

Merge pull request #48 from wayofdev/develop #114

Merge pull request #48 from wayofdev/develop

Merge pull request #48 from wayofdev/develop #114

Triggered via push November 15, 2024 19:15
Status Success
Total duration 1m 26s
Artifacts

testing.yml

on: push
Matrix: arch-testing
Matrix: code-coverage
Matrix: mutation-testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/AppBootloader.php#L21
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ protected static function defineInterceptors() : array { return [ - CycleInterceptor::class, GridInterceptor::class, GuardInterceptor::class, // Allows to convert uuid string to UuidInterface instance
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/AppBootloader.php#L33
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function defineSingletons() : array { - return [CoreInterface::class => [self::class, 'domainCore']]; + return []; } }
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/ExceptionHandlerBootloader.php#L34
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } public function defineBindings() : array { - return [SuppressErrorsInterface::class => EnvSuppressErrors::class, RendererInterface::class => PlainRenderer::class]; + return [RendererInterface::class => PlainRenderer::class]; } public function init(AbstractKernel $kernel) : void {
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/ExceptionHandlerBootloader.php#L40
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { return [SuppressErrorsInterface::class => EnvSuppressErrors::class, RendererInterface::class => PlainRenderer::class]; } - public function init(AbstractKernel $kernel) : void + protected function init(AbstractKernel $kernel) : void { // Register the console renderer, that will be used when the application // is running in the console.
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/ExceptionHandlerBootloader.php#L44
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function init(AbstractKernel $kernel) : void { - // Register the console renderer, that will be used when the application - // is running in the console. - $this->handler->addRenderer(new ConsoleRenderer()); + $kernel->running(function () : void { // Register the JSON renderer, that will be used when the application is // running in the HTTP context and a JSON response is expected.
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/ExceptionHandlerBootloader.php#L46
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ // Register the console renderer, that will be used when the application // is running in the console. $this->handler->addRenderer(new ConsoleRenderer()); - $kernel->running(function () : void { - // Register the JSON renderer, that will be used when the application is - // running in the HTTP context and a JSON response is expected. - $this->handler->addRenderer(new JsonRenderer()); - }); + } public function boot(LoggerReporter $logger, FileReporter $files, AppEnvironment $appEnv) : void {
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/ExceptionHandlerBootloader.php#L53
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ $this->handler->addRenderer(new JsonRenderer()); }); } - public function boot(LoggerReporter $logger, FileReporter $files, AppEnvironment $appEnv) : void + protected function boot(LoggerReporter $logger, FileReporter $files, AppEnvironment $appEnv) : void { // Register the logger reporter, that will be used to log the exceptions using // the logger component.
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/ExceptionHandlerBootloader.php#L57
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function boot(LoggerReporter $logger, FileReporter $files, AppEnvironment $appEnv) : void { - // Register the logger reporter, that will be used to log the exceptions using - // the logger component. - $this->handler->addReporter($logger); + // Register the file reporter. It allows you to save detailed information about an exception to a file // known as snapshot. if ($appEnv->isLocal()) {
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/ExceptionHandlerBootloader.php#L61
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ $this->handler->addReporter($logger); // Register the file reporter. It allows you to save detailed information about an exception to a file // known as snapshot. - if ($appEnv->isLocal()) { + if (!$appEnv->isLocal()) { $this->handler->addReporter($files); } } }
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Bridge/Spiral/Bootloaders/LoggingBootloader.php#L26
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ public function __construct(private readonly ConfiguratorInterface $config) { } - public function init(MonologBootloader $monolog) : void + protected function init(MonologBootloader $monolog) : void { // HTTP level errors $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate(directory('runtime') . 'logs/http.log'));