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