table of contents
Catmandu::Validator::Mock(3pm) | User Contributed Perl Documentation | Catmandu::Validator::Mock(3pm) |
NAME¶
Catmandu::Validator::Mock - Validate items based on a flag
SYNOPSIS¶
use Catmandu::Validator::Mock; my $validator = Catmandu::Validator::Mock->new( message => 'item is invalid', reject => 1, );
DESCRIPTION¶
This Catmandu::Validator can be used for testing as it does not actually look at the data to validate. Instead it rejects items if "reject" is set to a true value.
CONFIGURATION¶
SEE ALSO¶
See Catmandu::Validator for inherited methods, common configuration options, and usage.
2025-01-17 | perl v5.40.0 |