line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
11462
|
use v5.12; |
|
4
|
|
|
|
|
13
|
|
2
|
4
|
|
|
4
|
|
31
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
67
|
|
3
|
4
|
|
|
4
|
|
17
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
211
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
7
|
|
|
|
|
|
|
our $VERSION = '0.007'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use parent qw(Benchmark::Featureset::ParamCheck::Base); |
10
|
4
|
|
|
4
|
|
19
|
use Type::Params 2.000000 qw(signature); |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
19
|
|
11
|
4
|
|
|
4
|
|
210
|
use Type::Nano qw( Int ArrayRef HashRef duck_type ); |
|
4
|
|
|
|
|
49
|
|
|
4
|
|
|
|
|
23
|
|
12
|
4
|
|
|
4
|
|
779
|
use namespace::autoclean; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
33
|
|
13
|
4
|
|
|
4
|
|
1872
|
|
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
26
|
|
14
|
|
|
|
|
|
|
use constant long_name => 'Type::Params v2 API with Type::Nano'; |
15
|
4
|
|
|
4
|
|
206
|
use constant short_name => 'TP2-Nano'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
176
|
|
16
|
4
|
|
|
4
|
|
19
|
|
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
653
|
|
17
|
|
|
|
|
|
|
my $ArrayRef_of_HashRef = Type::Nano->new( |
18
|
|
|
|
|
|
|
name => 'ArrayRef[HashRef]', |
19
|
|
|
|
|
|
|
parent => ArrayRef, |
20
|
|
|
|
|
|
|
constraint => sub { HashRef->check($_) || return !!0 for @$_; !!1 }, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
state $check = signature named => [ |
24
|
|
|
|
|
|
|
integer => Int, |
25
|
118
|
|
|
118
|
0
|
427
|
hashes => $ArrayRef_of_HashRef, |
26
|
|
|
|
|
|
|
object => duck_type [qw/ print close /], |
27
|
|
|
|
|
|
|
]; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
state $check = signature pos => [ |
31
|
|
|
|
|
|
|
Int, |
32
|
|
|
|
|
|
|
$ArrayRef_of_HashRef, |
33
|
107
|
|
|
107
|
0
|
363
|
duck_type [qw/ print close /], |
34
|
|
|
|
|
|
|
]; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |