line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
18
|
|
|
18
|
|
195
|
use strict; |
|
18
|
|
|
|
|
36
|
|
|
18
|
|
|
|
|
575
|
|
2
|
18
|
|
|
18
|
|
92
|
use warnings; |
|
18
|
|
|
|
|
35
|
|
|
18
|
|
|
|
|
643
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::ArrayLengthOnly 1.204; |
5
|
|
|
|
|
|
|
|
6
|
18
|
|
|
18
|
|
101
|
use Test::Deep::Ref; |
|
18
|
|
|
|
|
35
|
|
|
18
|
|
|
|
|
100
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub init |
9
|
|
|
|
|
|
|
{ |
10
|
140
|
|
|
140
|
0
|
219
|
my $self = shift; |
11
|
|
|
|
|
|
|
|
12
|
140
|
|
|
|
|
204
|
my $val = shift; |
13
|
|
|
|
|
|
|
|
14
|
140
|
|
|
|
|
959
|
$self->{val} = $val; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub descend |
18
|
|
|
|
|
|
|
{ |
19
|
140
|
|
|
140
|
0
|
221
|
my $self = shift; |
20
|
140
|
|
|
|
|
207
|
my $got = shift; |
21
|
|
|
|
|
|
|
|
22
|
140
|
|
|
|
|
240
|
my $len = $self->{val}; |
23
|
|
|
|
|
|
|
|
24
|
140
|
|
|
|
|
402
|
return @$got == $len; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub render_stack |
28
|
|
|
|
|
|
|
{ |
29
|
8
|
|
|
8
|
0
|
16
|
my $self = shift; |
30
|
8
|
|
|
|
|
20
|
my ($var, $data) = @_; |
31
|
|
|
|
|
|
|
|
32
|
8
|
|
|
|
|
47
|
return "array length of $var"; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub renderVal |
36
|
|
|
|
|
|
|
{ |
37
|
16
|
|
|
16
|
0
|
29
|
my $self = shift; |
38
|
|
|
|
|
|
|
|
39
|
16
|
|
|
|
|
21
|
my $val = shift; |
40
|
|
|
|
|
|
|
|
41
|
16
|
|
|
|
|
70
|
return "array with $val element(s)" |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub renderGot |
45
|
|
|
|
|
|
|
{ |
46
|
8
|
|
|
8
|
0
|
12
|
my $self = shift; |
47
|
|
|
|
|
|
|
|
48
|
8
|
|
|
|
|
16
|
my $got = shift; |
49
|
|
|
|
|
|
|
|
50
|
8
|
|
|
|
|
63
|
return $self->renderVal(@$got + 0); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub renderExp |
54
|
|
|
|
|
|
|
{ |
55
|
8
|
|
|
8
|
0
|
13
|
my $self = shift; |
56
|
|
|
|
|
|
|
|
57
|
8
|
|
|
|
|
32
|
return $self->renderVal($self->{val}); |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__END__ |