Deep/RefType.pm

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