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