Deep/Blessed.pm

filter: Statementstmt 88.8% 24 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 0.0% 0 / 4 totaltotal 79.4% 31 / 39 CC 1 SCAR 1.2
CC
1
Cov
89%
renderGot
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Deep/RefType.pm ↑ Summary Deep/ArrayLengthOnly.pm »
1 24 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 24 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Test::Deep::Blessed 1.205;
5  
6 24 ▶use Test::Deep::Cmp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 24 ▶use Scalar::Util qw( blessed );
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub init
11 173 ▶{
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
12 173 my $self = shift;
13  
14 173 my $val = shift;
15  
16 173 $self->{val} = $val;
17 }
18  
19 sub descend
20 173 ▶{
Subroutine descend: called CC=1 SCAR=0.0
Pod undocumented
21 173 my $self = shift;
22 173 my $got = shift;
23  
24 173 my $exp = $self->{val};
25 173 my $blessed = blessed($got);
26  
27 173 return Test::Deep::descend($blessed, Test::Deep::shallow($exp));
28 }
29  
30 sub render_stack
31 5 ▶{
Subroutine render_stack: called CC=1 SCAR=0.0
Pod undocumented
32 5 my $self = shift;
33 5 my $var = shift;
34  
35 5 return "blessed($var)"
36 }
37  
38 sub renderGot
39 0 ▶{
Subroutine renderGot: not called CC=1 SCAR=6.9
Pod undocumented
40 0 my $self = shift;
41  
42 0 my $got = shift;
43  
44 0 $self->SUPER::renderGot(blessed($got));
45 }
46  
47 24 1;
48  
49 __END__
« Deep/RefType.pm ↑ Summary Deep/ArrayLengthOnly.pm »