Deep/ScalarRef.pm

filter: Statementstmt 100% 19 / 19 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 90.0% 27 / 30 CC 3 SCAR 6.2
CC
3
Cov
96%
descend
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« Deep/ArrayEach.pm ↑ Summary Deep/None.pm »
1 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Test::Deep::ScalarRef 1.205;
5  
6 6 ▶use Test::Deep::Ref;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub init
9 21 ▶{
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
10 21 my $self = shift;
11  
12 21 my $val = shift;
13  
14 21 $self->{val} = $val;
15 }
16  
17 sub descend
18 21 ▶{
Subroutine descend: called CC=3 SCAR=11.0
Pod undocumented
19 21 my $self = shift;
20  
21 21 my $got = shift;
22 21 my $exp = $self->{val};
23  
24 21 ▶ return 0 unless $self->test_class($got);
Branch: 1 branch
BranchTrueFalseTotal
unless $self->test_class($got) 0 21 21
25 21 ▶ return 0 unless $self->test_reftype($got, Scalar::Util::reftype($exp));
Branch: 1 branch
BranchTrueFalseTotal
unless $self->test_reftype($got, builtin::reftype($exp)) 1 20 21
26 20 return Test::Deep::descend($got, Test::Deep::scalarrefonly($exp));
27 }
28  
29 6 1;
30  
31 __END__
« Deep/ArrayEach.pm ↑ Summary Deep/None.pm »