Deep/HashEach.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 92.0% 23 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Deep/ListMethods.pm ↑ Summary Deep/Class.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Test::Deep::HashEach 1.205;
5  
6 1 ▶use Test::Deep::Cmp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub init
9 2 ▶{
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
10 2 my $self = shift;
11  
12 2 my $val = shift;
13  
14 2 $self->{val} = $val;
15 }
16  
17 sub descend
18 2 ▶{
Subroutine descend: called CC=1 SCAR=0.0
Pod undocumented
19 2 my $self = shift;
20 2 my $got = shift;
21  
22 2 my %exp;
23  
24 2 @exp{keys %$got} = ($self->{val}) x (keys %$got);
25  
26 2 return Test::Deep::descend($got, \%exp);
27 }
28  
29 1 1;
30  
31 __END__
« Deep/ListMethods.pm ↑ Summary Deep/Class.pm »