Benchmark-Featureset-ParamCheck
view release on metacpan or search on metacpan
lib/Benchmark/Featureset/ParamCheck/Implementation/DataValidator/Moose.pm view on Meta::CPAN
use v5.12;
use strict;
use warnings;
package Benchmark::Featureset::ParamCheck::Implementation::DataValidator::Moose;
our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION = '0.007';
use parent qw(Benchmark::Featureset::ParamCheck::Base::DataValidator);
use Moose 2.2002 ();
use Moose::Util::TypeConstraints;
use namespace::autoclean;
use constant long_name => 'Data::Validator with Moose';
use constant short_name => 'DV-Moose';
my $t = \&Moose::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.698 second using v1.01-cache-2.11-cpan-39bf76dae61 )