line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
11866
|
use v5.12; |
|
4
|
|
|
|
|
12
|
|
2
|
4
|
|
|
4
|
|
18
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
69
|
|
3
|
4
|
|
|
4
|
|
15
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
223
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
7
|
|
|
|
|
|
|
our $VERSION = '0.007'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use parent qw(Benchmark::Featureset::ParamCheck::Base::ParamsCheck); |
10
|
4
|
|
|
4
|
|
20
|
use Scalar::Util qw(blessed); |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
21
|
|
11
|
4
|
|
|
4
|
|
159
|
use namespace::autoclean; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
140
|
|
12
|
4
|
|
|
4
|
|
20
|
|
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
15
|
|
13
|
|
|
|
|
|
|
use constant long_name => 'Params::Check with coderefs'; |
14
|
4
|
|
|
4
|
|
181
|
use constant short_name => 'PC-PurePerl'; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
169
|
|
15
|
4
|
|
|
4
|
|
20
|
|
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
793
|
|
16
|
|
|
|
|
|
|
state $check = +{ |
17
|
|
|
|
|
|
|
integer => { required => 1, allow => qr/\A-?[0-9]+\z/ }, |
18
|
|
|
|
|
|
|
hashes => { required => 1, allow => sub { |
19
|
|
|
|
|
|
|
return unless ref($_[0]) eq 'ARRAY'; |
20
|
|
|
|
|
|
|
for my $arr (@{ $_[0] }) { |
21
|
1000005
|
50
|
|
1000005
|
|
48837372
|
return unless ref($arr) eq 'HASH'; |
22
|
1000005
|
|
|
|
|
1188974
|
} |
|
1000005
|
|
|
|
|
1627472
|
|
23
|
5000033
|
100
|
|
|
|
7708387
|
return 1; |
24
|
|
|
|
|
|
|
}}, |
25
|
1000004
|
|
|
|
|
1432770
|
object => { required => 1, allow => sub { |
26
|
|
|
|
|
|
|
blessed($_[0]) |
27
|
|
|
|
|
|
|
&& $_[0]->can('print') |
28
|
1000005
|
100
|
66
|
1000005
|
|
52935322
|
&& $_[0]->can('close') |
29
|
|
|
|
|
|
|
}}, |
30
|
|
|
|
|
|
|
}; |
31
|
|
|
|
|
|
|
} |
32
|
108
|
|
|
108
|
0
|
314
|
|
33
|
|
|
|
|
|
|
1; |