line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::RandomCheck::Types::Reference; |
2
|
4
|
|
|
4
|
|
11
|
use strict; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
92
|
|
3
|
4
|
|
|
4
|
|
13
|
use warnings; |
|
4
|
|
|
|
|
3
|
|
|
4
|
|
|
|
|
88
|
|
4
|
4
|
|
|
4
|
|
10
|
use parent "Test::RandomCheck::Types"; |
|
4
|
|
|
|
|
3
|
|
|
4
|
|
|
|
|
12
|
|
5
|
4
|
|
|
4
|
|
191
|
use Class::Accessor::Lite (ro => [qw(type)]); |
|
4
|
|
|
|
|
3
|
|
|
4
|
|
|
|
|
17
|
|
6
|
4
|
|
|
4
|
|
169
|
use Test::RandomCheck::Types::List; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
396
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub arbitrary { |
9
|
3316
|
|
|
3316
|
0
|
8446
|
my $self = shift; |
10
|
3316
|
|
|
7824
|
|
4401
|
$self->type->arbitrary->map(sub { [@_] }); |
|
7824
|
|
|
|
|
32880
|
|
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub memoize_key { |
14
|
1755
|
|
|
1755
|
0
|
4385
|
my ($self, $array_ref) = @_; |
15
|
1755
|
|
|
|
|
2031
|
$self->type->memoize_key(@$array_ref); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |