line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::ArrayEach 1.202; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use Test::Deep::Cmp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
7
|
1
|
|
|
1
|
|
4
|
use Scalar::Util (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
249
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init |
10
|
|
|
|
|
|
|
{ |
11
|
2
|
|
|
2
|
0
|
3
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
|
|
3
|
my $val = shift; |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
|
|
34
|
$self->{val} = $val; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub descend |
19
|
|
|
|
|
|
|
{ |
20
|
2
|
|
|
2
|
0
|
4
|
my $self = shift; |
21
|
2
|
|
|
|
|
3
|
my $got = shift; |
22
|
|
|
|
|
|
|
|
23
|
2
|
50
|
33
|
|
|
12
|
return unless ref $got && Scalar::Util::reftype($got) eq 'ARRAY'; |
24
|
2
|
|
|
|
|
7
|
my $exp = [ ($self->{val}) x @$got ]; |
25
|
|
|
|
|
|
|
|
26
|
2
|
|
|
|
|
9
|
return Test::Deep::descend($got, $exp); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub renderExp |
30
|
|
|
|
|
|
|
{ |
31
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
32
|
0
|
|
|
|
|
|
my $exp = shift; |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
return '[ ' . $self->SUPER::renderExp($self->{val}) . ', ... ]'; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |