Skip to content

ci: dependency, testing and analysis workflows #10

ci: dependency, testing and analysis workflows

ci: dependency, testing and analysis workflows #10

Triggered via pull request August 1, 2024 21:51
Status Success
Total duration 40s
Artifacts

testing.yml

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

Annotations

11 warnings
code-coverage (ubuntu-latest, 8.3, locked)
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4.4.1/dist/codecov' failed with exit code 1
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Application/Bootloader/ExceptionHandlerBootloader.php#L37
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ public function __construct(private readonly ExceptionHandler $handler) { } - 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/Application/Bootloader/ExceptionHandlerBootloader.php#L41
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/Application/Bootloader/ExceptionHandlerBootloader.php#L43
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/Application/Bootloader/ExceptionHandlerBootloader.php#L50
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/Application/Bootloader/ExceptionHandlerBootloader.php#L54
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/Application/Bootloader/ExceptionHandlerBootloader.php#L58
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/Application/Bootloader/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'));
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Application/Bootloader/LoggingBootloader.php#L29
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function init(MonologBootloader $monolog) : void { - // HTTP level errors - $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate(directory('runtime') . 'logs/http.log')); + // app level errors $monolog->addHandler(channel: MonologConfig::DEFAULT_CHANNEL, handler: $monolog->logRotate(filename: directory('runtime') . 'logs/error.log', level: Level::Error, maxFiles: 25, bubble: false)); // debug and info messages via global LoggerInterface
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Application/Bootloader/LoggingBootloader.php#L32
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ public function init(MonologBootloader $monolog) : void { // HTTP level errors - $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate(directory('runtime') . 'logs/http.log')); + $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate('logs/http.log' . directory('runtime'))); // app level errors $monolog->addHandler(channel: MonologConfig::DEFAULT_CHANNEL, handler: $monolog->logRotate(filename: directory('runtime') . 'logs/error.log', level: Level::Error, maxFiles: 25, bubble: false)); // debug and info messages via global LoggerInterface
mutation-testing (ubuntu-latest, 8.3, locked): app/src/Application/Bootloader/LoggingBootloader.php#L32
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ public function init(MonologBootloader $monolog) : void { // HTTP level errors - $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate(directory('runtime') . 'logs/http.log')); + $monolog->addHandler(channel: ErrorHandlerMiddleware::class, handler: $monolog->logRotate('logs/http.log')); // app level errors $monolog->addHandler(channel: MonologConfig::DEFAULT_CHANNEL, handler: $monolog->logRotate(filename: directory('runtime') . 'logs/error.log', level: Level::Error, maxFiles: 25, bubble: false)); // debug and info messages via global LoggerInterface