Skip to content

Commit

Permalink
test: exclude from coverage test (#64)
Browse files Browse the repository at this point in the history
Exclude default classes from coverage test.

Signed-off-by: Valentin Sickert <[email protected]>
  • Loading branch information
Lapotor authored Dec 12, 2023
1 parent 5cc75f8 commit c97a130
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

/**
* @codeCoverageIgnore
*/
class Kernel extends ConsoleKernel
{
/**
Expand Down
1 change: 1 addition & 0 deletions app/Http/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
* @codeCoverageIgnore
*/
protected function redirectTo(Request $request): ?string
{
Expand Down
1 change: 1 addition & 0 deletions app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class RedirectIfAuthenticated
/**
* Handle an incoming request.
*
* @codeCoverageIgnore
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
*/
public function handle(Request $request, Closure $next, string ...$guards): Response
Expand Down
1 change: 1 addition & 0 deletions app/Http/Middleware/TrustHosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class TrustHosts extends Middleware
/**
* Get the host patterns that should be trusted.
*
* @codeCoverageIgnore
* @return array<int, string|null>
*/
public function hosts(): array
Expand Down
3 changes: 3 additions & 0 deletions app/Http/Responses/ApiErrorResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class ApiErrorResponse implements Responsable
*
* This class is responsible for constructing an API error response object
* with the provided message, optional exception, status code, and headers.
*
* @codeCoverageIgnore
*/
public function __construct(
private $message,
Expand All @@ -24,6 +26,7 @@ public function __construct(
/**
* Convert the exception to a JSON response.
*
* @codeCoverageIgnore
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\JsonResponse
*/
Expand Down
2 changes: 2 additions & 0 deletions app/Http/Responses/ApiSuccessResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class ApiSuccessResponse implements Responsable
*
* This class is responsible for constructing a successful API response
* with the provided data, status code, and headers.
* @codeCoverageIgnore
*/
public function __construct(
private $data,
Expand All @@ -22,6 +23,7 @@ public function __construct(
/**
* Convert the response instance to a JSON response.
*
* @codeCoverageIgnore
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response|void
*/
Expand Down
1 change: 1 addition & 0 deletions app/Providers/BroadcastServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
* @codeCoverageIgnore
*/
public function boot(): void
{
Expand Down

0 comments on commit c97a130

Please sign in to comment.