line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
2
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
74
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::Boolean 1.204; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
397
|
use Test::Deep::Cmp; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
4
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub init |
9
|
|
|
|
|
|
|
{ |
10
|
18
|
|
|
18
|
0
|
22
|
my $self = shift; |
11
|
|
|
|
|
|
|
|
12
|
18
|
100
|
|
|
|
90
|
$self->{val} = shift() ? 1 : 0; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub descend |
16
|
|
|
|
|
|
|
{ |
17
|
18
|
|
|
18
|
0
|
26
|
my $self = shift; |
18
|
18
|
|
|
|
|
22
|
my $got = shift; |
19
|
|
|
|
|
|
|
|
20
|
18
|
|
100
|
|
|
83
|
return !( $got xor $self->{val} ); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub diag_message |
24
|
|
|
|
|
|
|
{ |
25
|
8
|
|
|
8
|
0
|
12
|
my $self = shift; |
26
|
8
|
|
|
|
|
8
|
my $where = shift; |
27
|
8
|
|
|
|
|
26
|
return "Comparing $where as a boolean"; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub renderExp |
31
|
|
|
|
|
|
|
{ |
32
|
8
|
|
|
8
|
0
|
13
|
my $self = shift; |
33
|
|
|
|
|
|
|
|
34
|
8
|
|
|
|
|
31
|
$self->renderGot($self->{val}); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub renderGot |
38
|
|
|
|
|
|
|
{ |
39
|
16
|
|
|
16
|
0
|
23
|
my $self = shift; |
40
|
|
|
|
|
|
|
|
41
|
16
|
|
|
|
|
21
|
my $val = shift; |
42
|
|
|
|
|
|
|
|
43
|
16
|
100
|
|
|
|
41
|
return ($val ? "true" : "false")." (".Test::Deep::render_val($val).")"; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |