line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::RandomCheck::Types::ArrayRef; |
2
|
4
|
|
|
4
|
|
15
|
use strict; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
95
|
|
3
|
4
|
|
|
4
|
|
12
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
85
|
|
4
|
4
|
|
|
4
|
|
1382
|
use parent "Test::RandomCheck::Types"; |
|
4
|
|
|
|
|
898
|
|
|
4
|
|
|
|
|
20
|
|
5
|
4
|
|
|
4
|
|
257
|
use Class::Accessor::Lite (ro => [qw(min max type)], rw => ['_inner_type']); |
|
4
|
|
|
|
|
3
|
|
|
4
|
|
|
|
|
37
|
|
6
|
4
|
|
|
4
|
|
1770
|
use Test::RandomCheck::Types::List; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
165
|
|
7
|
4
|
|
|
4
|
|
1554
|
use Test::RandomCheck::Types::Reference; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
46
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
0
|
|
|
0
|
|
|
my $class = shift; |
11
|
0
|
|
|
|
|
|
my $self = $class->SUPER::new(@_); |
12
|
0
|
|
|
|
|
|
my $list_type = list ($self->type, $self->min, $self->max); |
13
|
0
|
|
|
|
|
|
$self->_inner_type(Test::RandomCheck::Types::Reference->new( |
14
|
|
|
|
|
|
|
type => $list_type |
15
|
|
|
|
|
|
|
)); |
16
|
0
|
|
|
|
|
|
$self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub arbitrary { |
20
|
0
|
|
|
0
|
|
|
my $self = shift; |
21
|
0
|
|
|
|
|
|
$self->_inner_type->arbitrary; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub memoize_key { |
25
|
0
|
|
|
0
|
|
|
my $self = shift; |
26
|
0
|
|
|
|
|
|
$self->_inner_type->memoize_key(@_); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |