Deep/ArrayLength.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 92.5% 25 / 27 CC 2 SCAR 2.9
CC
2
Cov
100%
descend
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Deep/Hash.pm ↑ Summary Deep/Ref.pm »
1 19 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 19 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Test::Deep::ArrayLength 1.205;
5  
6 19 ▶use Test::Deep::Ref;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub init
9 179 ▶{
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
10 179 my $self = shift;
11  
12 179 my $val = shift;
13  
14 179 $self->{val} = $val;
15 }
16  
17 sub descend
18 179 ▶{
Subroutine descend: called CC=2 SCAR=6.9
Pod undocumented
19 179 my $self = shift;
20 179 my $got = shift;
21  
22 179 my $exp = $self->{val};
23  
24 179 ▶ return 0 unless $self->test_reftype($got, "ARRAY");
Branch: 1 branch
BranchTrueFalseTotal
unless $self->test_reftype($got, "ARRAY") 39 140 179
25  
26 140 return Test::Deep::descend($got, Test::Deep::arraylengthonly($exp));
27 }
28  
29 19 1;
30  
31 __END__
« Deep/Hash.pm ↑ Summary Deep/Ref.pm »