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