line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
15
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
96
|
|
2
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
85
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::Isa 1.202; |
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
741
|
use Test::Deep::Cmp; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
8
|
|
7
|
2
|
|
|
2
|
|
13
|
use Scalar::Util; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
399
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init |
10
|
|
|
|
|
|
|
{ |
11
|
6
|
|
|
6
|
0
|
7
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
6
|
|
|
|
|
12
|
my $val = shift; |
14
|
6
|
|
|
|
|
82
|
$self->{val} = $val; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub descend |
18
|
|
|
|
|
|
|
{ |
19
|
6
|
|
|
6
|
0
|
12
|
my $self = shift; |
20
|
6
|
|
|
|
|
8
|
my $got = shift; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
return Scalar::Util::blessed($got) |
23
|
|
|
|
|
|
|
? $got->isa($self->{val}) |
24
|
6
|
100
|
|
|
|
39
|
: ref($got) eq $self->{val}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub diag_message |
28
|
|
|
|
|
|
|
{ |
29
|
2
|
|
|
2
|
0
|
5
|
my $self = shift; |
30
|
|
|
|
|
|
|
|
31
|
2
|
|
|
|
|
3
|
my $where = shift; |
32
|
|
|
|
|
|
|
|
33
|
2
|
|
|
|
|
9
|
return "Checking class of $where with isa()"; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub renderExp |
37
|
|
|
|
|
|
|
{ |
38
|
2
|
|
|
2
|
0
|
3
|
my $self = shift; |
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
|
|
10
|
return "blessed into or ref of type '$self->{val}'"; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |