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