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