« ParamCheck/Implementation/DataValidator/Moose.pm
↑ Summary
ParamCheck/Implementation/DataValidator/TypeTiny.pm »
| 1 | 4 | ▶ | use v5.12; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Benchmark::Featureset::ParamCheck::Implementation::DataValidator::Mouse; | ||
| 6 | |||
| 7 | 4 | our $AUTHORITY = 'cpan:TOBYINK'; | |
| 8 | 4 | our $VERSION = '0.006'; | |
| 9 | |||
| 10 | 4 | ▶ | use parent qw(Benchmark::Featureset::ParamCheck::Base::DataValidator); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 4 | ▶ | use Mouse v2.4.7 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 4 | ▶ | use Mouse::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 4 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 4 | ▶ | use constant long_name => 'Data::Validator with Mouse'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 4 | ▶ | use constant short_name => 'DV-Mouse'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 4 | my $t = \&Mouse::Util::TypeConstraints::find_or_parse_type_constraint; | |
| 19 | |||
| 20 | sub get_named_check { | ||
| 21 | 159 | ▶ | state $check = Data::Validator->new( |
|
Subroutine
get_named_check: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 22 | integer => { isa => $t->('Int') }, | ||
| 23 | hashes => { isa => $t->('ArrayRef[HashRef]') }, | ||
| 24 | object => { isa => duck_type(Printable => [qw/ print close /]) }, | ||
| 25 | ); | ||
| 26 | } | ||
| 27 | |||
| 28 | 4 | 1; | |