| 1 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 2 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | package Test::Deep::Obj 1.205; | ||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 1 | ▶ | use Test::Deep::Cmp; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 1 | ▶ | use Scalar::Util; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | sub init | ||||||||||||||||||||
| 10 | 4 | ▶ | { | ||||||||||||||||||
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 11 | 4 | my $self = shift; | |||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 4 | my $val = shift; | |||||||||||||||||||
| 14 | 4 | $self->{val} = $val; | |||||||||||||||||||
| 15 | } | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | sub descend | ||||||||||||||||||||
| 18 | 4 | ▶ | { | ||||||||||||||||||
|
Subroutine
descend: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 19 | 4 | my $self = shift; | |||||||||||||||||||
| 20 | 4 | my $got = shift; | |||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | return Scalar::Util::blessed($got) | ||||||||||||||||||||
| 23 | 4 | ▶ | && $got->isa($self->{val}); | ||||||||||||||||||
|
Condition100%3/3
builtin::blessed($got) && $got->isa($self->{'val'})
MC/DC100%2/2
builtin::blessed($got) && $got->isa($self->{'val'})
builtin::blessed($got)
$got->isa($self->{'val'})
Truth table100%3/3
A && B
A= builtin::blessed($got)B= $got->isa($self->{'val'})
| |||||||||||||||||||||
| 24 | } | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | sub diag_message | ||||||||||||||||||||
| 27 | 2 | ▶ | { | ||||||||||||||||||
|
Subroutine
diag_message: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 28 | 2 | my $self = shift; | |||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 2 | my $where = shift; | |||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | 2 | return "Checking class of $where with isa()"; | |||||||||||||||||||
| 33 | } | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | sub renderExp | ||||||||||||||||||||
| 36 | 2 | ▶ | { | ||||||||||||||||||
|
Subroutine
renderExp: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 37 | 2 | my $self = shift; | |||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | 2 | return "blessed into '$self->{val}' or subclass of '$self->{val}'"; | |||||||||||||||||||
| 40 | } | ||||||||||||||||||||
| 41 | |||||||||||||||||||||
| 42 | 1 | 1; | |||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | __END__ | ||||||||||||||||||||