Ignore classes for code coverage

This commit is contained in:
Matt Young 2025-07-04 14:47:14 -05:00
parent 409aa939c3
commit db34a86545
2 changed files with 15 additions and 1 deletions

View File

@ -4,9 +4,11 @@ namespace App\Rules;
use App\Settings;
use Closure;
use Hamcrest\Core\Set;
use Illuminate\Contracts\Validation\ValidationRule;
/**
* @codeCoverageIgnore
*/
class ValidRegistrationCode implements ValidationRule
{
/**

View File

@ -6,8 +6,20 @@ use Closure;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Support\Facades\DB;
/**
* @codeCoverageIgnore
*/
class ValidateAuditionKey implements ValidationRule
{
/**
* Validates the given attribute and value to ensure they correspond
* to an existing audition in the database. If the audition ID does
* not exist, the validation will fail with the provided message.
*
* @param string $attribute The attribute being validated.
* @param mixed $value The value of the attribute.
* @param Closure $fail Callback function to indicate validation failure.
*/
public function validate(string $attribute, mixed $value, Closure $fail): void
{
// Extract the key from the attribute