line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
13269
|
use v5.12; |
|
4
|
|
|
|
|
13
|
|
2
|
4
|
|
|
4
|
|
24
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
94
|
|
3
|
4
|
|
|
4
|
|
19
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
253
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
7
|
|
|
|
|
|
|
our $VERSION = '0.006'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use parent qw(Benchmark::Featureset::ParamCheck::Base::MXPV); |
10
|
4
|
|
|
4
|
|
22
|
use Moose 2.2002 (); |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
32
|
|
11
|
4
|
|
|
4
|
|
254
|
use Moose::Util::TypeConstraints; |
|
4
|
|
|
|
|
71
|
|
|
4
|
|
|
|
|
84
|
|
12
|
4
|
|
|
4
|
|
26
|
use namespace::autoclean; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
25
|
|
13
|
4
|
|
|
4
|
|
6485
|
|
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
20
|
|
14
|
|
|
|
|
|
|
use constant long_name => 'MooseX::Params::Validate with Moose'; |
15
|
4
|
|
|
4
|
|
206
|
use constant short_name => 'MXPV-Moose'; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
321
|
|
16
|
4
|
|
|
4
|
|
28
|
|
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
662
|
|
17
|
|
|
|
|
|
|
my $t = \&Moose::Util::TypeConstraints::find_or_parse_type_constraint; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
state $check = { |
20
|
|
|
|
|
|
|
integer => { isa => $t->('Int') }, |
21
|
58
|
|
|
58
|
0
|
234
|
hashes => { isa => $t->('ArrayRef[HashRef]') }, |
22
|
|
|
|
|
|
|
object => { isa => duck_type(Printable => [qw/ print close /]) }, |
23
|
|
|
|
|
|
|
}; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
state $check = [ |
27
|
|
|
|
|
|
|
{ isa => $t->('Int') }, |
28
|
|
|
|
|
|
|
{ isa => $t->('ArrayRef[HashRef]') }, |
29
|
47
|
|
|
47
|
0
|
146
|
{ isa => duck_type(Printable => [qw/ print close /]) }, |
30
|
|
|
|
|
|
|
]; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |