line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
12210
|
use v5.12; |
|
4
|
|
|
|
|
13
|
|
2
|
4
|
|
|
4
|
|
22
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
71
|
|
3
|
4
|
|
|
4
|
|
16
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
217
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
7
|
|
|
|
|
|
|
our $VERSION = '0.007'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use parent qw(Benchmark::Featureset::ParamCheck::Base::DataValidator); |
10
|
4
|
|
|
4
|
|
18
|
use Mouse v2.4.7 (); |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
24
|
|
11
|
4
|
|
|
4
|
|
264
|
use Mouse::Util::TypeConstraints; |
|
4
|
|
|
|
|
73
|
|
|
4
|
|
|
|
|
97
|
|
12
|
4
|
|
|
4
|
|
20
|
use namespace::autoclean; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
31
|
|
13
|
4
|
|
|
4
|
|
388
|
|
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
25
|
|
14
|
|
|
|
|
|
|
use constant long_name => 'Data::Validator with Mouse'; |
15
|
4
|
|
|
4
|
|
245
|
use constant short_name => 'DV-Mouse'; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
192
|
|
16
|
4
|
|
|
4
|
|
17
|
|
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
463
|
|
17
|
|
|
|
|
|
|
my $t = \&Mouse::Util::TypeConstraints::find_or_parse_type_constraint; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
state $check = Data::Validator->new( |
20
|
|
|
|
|
|
|
integer => { isa => $t->('Int') }, |
21
|
118
|
|
|
118
|
0
|
350
|
hashes => { isa => $t->('ArrayRef[HashRef]') }, |
22
|
|
|
|
|
|
|
object => { isa => duck_type(Printable => [qw/ print close /]) }, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |