Deep/Array.pm

filter: Statementstmt 100% 20 / 20 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 3 totaltotal 87.8% 29 / 33 CC 3 SCAR 5.6
CC
3
Cov
96%
descend
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« Deep/ArrayElementsOnly.pm ↑ Summary Deep/Cache/Simple.pm »
1 22 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 22 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Test::Deep::Array 1.205;
5  
6 22 ▶use Test::Deep::Ref;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub init
9 142 ▶{
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
10 142 my $self = shift;
11  
12 142 my $val = shift;
13  
14 142 $self->{val} = $val;
15 }
16  
17 sub descend
18 172 ▶{
Subroutine descend: called CC=3 SCAR=11.0
Pod undocumented
19 172 my $self = shift;
20 172 my $got = shift;
21  
22 172 my $exp = $self->{val};
23  
24 172 ▶ return 0 unless Test::Deep::descend($got, Test::Deep::arraylength(scalar @$exp));
Branch: 1 branch
BranchTrueFalseTotal
unless Test::Deep::descend($got, Test::Deep::arraylength(scalar @$exp)) 54 118 172
25  
26 118 ▶ return 0 unless $self->test_class($got);
Branch: 1 branch
BranchTrueFalseTotal
unless $self->test_class($got) 0 118 118
27  
28 118 return Test::Deep::descend($got, Test::Deep::arrayelementsonly($exp));
29 }
30  
31 sub reset_arrow
32 40 ▶{
Subroutine reset_arrow: called CC=1 SCAR=0.0
Pod undocumented
33 40 return 0;
34 }
35  
36 22 1;
37  
38 __END__
« Deep/ArrayElementsOnly.pm ↑ Summary Deep/Cache/Simple.pm »