Deep/Ref.pm

filter: Statementstmt 100% 23 / 23 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 93.9% 31 / 33 CC 2 SCAR 2.5
CC
2
Cov
100%
test_class
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Deep/ArrayLength.pm ↑ Summary Deep/Isa.pm »
1 26 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 26 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Test::Deep::Ref 1.205;
5  
6 26 ▶use Test::Deep::Cmp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 26 ▶use Scalar::Util qw( blessed );
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub test_class
11 155 ▶{
Subroutine test_class: called CC=2 SCAR=6.9
Pod undocumented
12 155 my $self = shift;
13 155 my $got = shift;
14  
15 155 my $exp = $self->{val};
16
17 155 ▶ if ($Test::Deep::Snobby)
Branch: 1 branch
BranchTrueFalseTotal
if ($Test::Deep::Snobby) { } 151 4 155
18 {
19 151 return Test::Deep::descend($got, Test::Deep::blessed(blessed($exp)));
20 }
21 else
22 {
23 4 return 1;
24 }
25 }
26  
27 sub test_reftype
28 245 ▶{
Subroutine test_reftype: called CC=1 SCAR=0.0
Pod undocumented
29 245 my $self = shift;
30 245 my $got = shift;
31 245 my $reftype = shift;
32  
33 245 return Test::Deep::descend($got, Test::Deep::reftype($reftype));
34 }
35  
36 26 1;
37  
38 __END__
« Deep/ArrayLength.pm ↑ Summary Deep/Isa.pm »