Ignore testing coverage in console commands and exceptions
This commit is contained in:
parent
471fe11570
commit
bd14c10b93
|
|
@ -5,6 +5,9 @@ namespace App\Console\Commands;
|
|||
use App\Actions\Tabulation\ForceRecalculateTotalScores;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class RecalculateScores extends Command
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@ use App\Models\Doubler;
|
|||
use App\Models\Event;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class SyncDoublers extends Command
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ use App\Models\User;
|
|||
use Faker\Factory;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class fictionalize extends Command
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@ use Exception;
|
|||
|
||||
class AuditionServiceException extends Exception
|
||||
{
|
||||
//
|
||||
//TODO: Fully depricate this class
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Throwable;
|
||||
use App\Exceptions\TabulationException;
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
//TODO: Fully depricate this class
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
|
||||
public function render($request, Throwable $e)
|
||||
{
|
||||
if ($e instanceof TabulationException) {
|
||||
dd('here');
|
||||
|
||||
return redirect('/tabulation/status')->with('warning', $e->getMessage());
|
||||
}
|
||||
|
||||
return parent::render($request, $e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,4 +6,5 @@ use Exception;
|
|||
|
||||
class ManageEntryException extends Exception
|
||||
{
|
||||
//TODO: Fully depricate this class
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@ use Exception;
|
|||
|
||||
class ScoreEntryException extends Exception
|
||||
{
|
||||
//
|
||||
//TODO: Fully depricate this class
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,20 +3,24 @@
|
|||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
use function dd;
|
||||
use function redirect;
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class TabulationException extends Exception
|
||||
{
|
||||
public function report(): void
|
||||
{
|
||||
//
|
||||
//TODO: Fully depricate this class
|
||||
}
|
||||
|
||||
public function render($request)
|
||||
{
|
||||
dd('in the render');
|
||||
return redirect('/tabulation/status')->with('error', $this->getMessage());
|
||||
|
||||
return redirect('/tabulation/status')->with('error', $this->getMessage());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue