line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
8
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
2
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::None 1.203; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
378
|
use Test::Deep::Cmp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub init |
9
|
|
|
|
|
|
|
{ |
10
|
5
|
|
|
5
|
0
|
8
|
my $self = shift; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my @list = map { |
13
|
5
|
|
|
|
|
9
|
eval { $_->isa('Test::Deep::None') } |
|
7
|
|
|
|
|
54
|
|
14
|
7
|
50
|
|
|
|
10
|
? @{ $_->{val} } |
|
0
|
|
|
|
|
0
|
|
15
|
|
|
|
|
|
|
: $_ |
16
|
|
|
|
|
|
|
} @_; |
17
|
|
|
|
|
|
|
|
18
|
5
|
|
|
|
|
45
|
$self->{val} = \@list; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub descend |
22
|
|
|
|
|
|
|
{ |
23
|
5
|
|
|
5
|
0
|
9
|
my $self = shift; |
24
|
5
|
|
|
|
|
6
|
my $got = shift; |
25
|
|
|
|
|
|
|
|
26
|
5
|
|
|
|
|
7
|
foreach my $cmp (@{$self->{val}}) |
|
5
|
|
|
|
|
10
|
|
27
|
|
|
|
|
|
|
{ |
28
|
7
|
100
|
|
|
|
21
|
return 0 if Test::Deep::eq_deeply_cache($got, $cmp); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
3
|
|
|
|
|
8
|
return 1; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub renderExp |
35
|
|
|
|
|
|
|
{ |
36
|
2
|
|
|
2
|
0
|
3
|
my $self = shift; |
37
|
|
|
|
|
|
|
|
38
|
2
|
|
|
|
|
2
|
my @expect = map {; Test::Deep::wrap($_) } @{ $self->{val} }; |
|
3
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
5
|
|
39
|
2
|
|
|
|
|
4
|
my $things = join(", ", map {$_->renderExp} @expect); |
|
3
|
|
|
|
|
9
|
|
40
|
|
|
|
|
|
|
|
41
|
2
|
|
|
|
|
8
|
return "None of ( $things )"; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub diagnostics |
45
|
|
|
|
|
|
|
{ |
46
|
1
|
|
|
1
|
0
|
3
|
my $self = shift; |
47
|
1
|
|
|
|
|
2
|
my ($where, $last) = @_; |
48
|
|
|
|
|
|
|
|
49
|
1
|
|
|
|
|
4
|
my $got = $self->renderGot($last->{got}); |
50
|
1
|
|
|
|
|
3
|
my $exp = $self->renderExp; |
51
|
|
|
|
|
|
|
|
52
|
1
|
|
|
|
|
3
|
my $diag = <
|
53
|
|
|
|
|
|
|
Comparing $where with None |
54
|
|
|
|
|
|
|
got : $got |
55
|
|
|
|
|
|
|
expected : $exp |
56
|
|
|
|
|
|
|
EOM |
57
|
|
|
|
|
|
|
|
58
|
1
|
|
|
|
|
7
|
$diag =~ s/\n+$/\n/; |
59
|
1
|
|
|
|
|
5
|
return $diag; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
1; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
__END__ |