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
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::None 1.204; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
379
|
use Test::Deep::Cmp; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
4
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub init |
9
|
|
|
|
|
|
|
{ |
10
|
5
|
|
|
5
|
0
|
6
|
my $self = shift; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my @list = map { |
13
|
5
|
|
|
|
|
11
|
eval { $_->isa('Test::Deep::None') } |
|
7
|
|
|
|
|
57
|
|
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
|
7
|
my $self = shift; |
24
|
5
|
|
|
|
|
9
|
my $got = shift; |
25
|
|
|
|
|
|
|
|
26
|
5
|
|
|
|
|
6
|
foreach my $cmp (@{$self->{val}}) |
|
5
|
|
|
|
|
10
|
|
27
|
|
|
|
|
|
|
{ |
28
|
7
|
100
|
|
|
|
18
|
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
|
4
|
my $self = shift; |
37
|
|
|
|
|
|
|
|
38
|
2
|
|
|
|
|
3
|
my @expect = map {; Test::Deep::wrap($_) } @{ $self->{val} }; |
|
3
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
4
|
|
39
|
2
|
|
|
|
|
5
|
my $things = join(", ", map {$_->renderExp} @expect); |
|
3
|
|
|
|
|
11
|
|
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
|
|
|
|
|
5
|
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
|
|
|
|
|
9
|
$diag =~ s/\n+$/\n/; |
59
|
1
|
|
|
|
|
3
|
return $diag; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
1; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
__END__ |