line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::RandomCheck::Types::ArrayRef; |
2
|
4
|
|
|
4
|
|
12
|
use strict; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
86
|
|
3
|
4
|
|
|
4
|
|
11
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
73
|
|
4
|
4
|
|
|
4
|
|
1119
|
use parent "Test::RandomCheck::Types"; |
|
4
|
|
|
|
|
649
|
|
|
4
|
|
|
|
|
15
|
|
5
|
4
|
|
|
4
|
|
220
|
use Class::Accessor::Lite (ro => [qw(min max type)], rw => ['_inner_type']); |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
29
|
|
6
|
4
|
|
|
4
|
|
1610
|
use Test::RandomCheck::Types::List; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
151
|
|
7
|
4
|
|
|
4
|
|
1203
|
use Test::RandomCheck::Types::Reference; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
37
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
6
|
|
|
6
|
|
8
|
my $class = shift; |
11
|
6
|
|
|
|
|
19
|
my $self = $class->SUPER::new(@_); |
12
|
6
|
|
|
|
|
34
|
my $list_type = list ($self->type, $self->min, $self->max); |
13
|
6
|
|
|
|
|
35
|
$self->_inner_type(Test::RandomCheck::Types::Reference->new( |
14
|
|
|
|
|
|
|
type => $list_type |
15
|
|
|
|
|
|
|
)); |
16
|
6
|
|
|
|
|
56
|
$self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub arbitrary { |
20
|
2910
|
|
|
2910
|
|
2763
|
my $self = shift; |
21
|
2910
|
|
|
|
|
4148
|
$self->_inner_type->arbitrary; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub memoize_key { |
25
|
606
|
|
|
606
|
|
1842
|
my $self = shift; |
26
|
606
|
|
|
|
|
753
|
$self->_inner_type->memoize_key(@_); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |