Benchmark-Featureset-ParamCheck
view release on metacpan or search on metacpan
lib/Benchmark/Featureset/ParamCheck/Implementation/DataValidator/Mouse.pm view on Meta::CPAN
use v5.12;
use strict;
use warnings;
package Benchmark::Featureset::ParamCheck::Implementation::DataValidator::Mouse;
our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION = '0.007';
use parent qw(Benchmark::Featureset::ParamCheck::Base::DataValidator);
use Mouse v2.4.7 ();
use Mouse::Util::TypeConstraints;
use namespace::autoclean;
use constant long_name => 'Data::Validator with Mouse';
use constant short_name => 'DV-Mouse';
my $t = \&Mouse::Util::TypeConstraints::find_or_parse_type_constraint;
sub get_named_check {
state $check = Data::Validator->new(
integer => { isa => $t->('Int') },
hashes => { isa => $t->('ArrayRef[HashRef]') },
object => { isa => duck_type(Printable => [qw/ print close /]) },
);
}
1;
( run in 0.512 second using v1.01-cache-2.11-cpan-39bf76dae61 )