blib/lib/Data/Dumper/Hash.pm

filter: Statementstmt 69.2% 18 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 67.6% 23 / 34 CC 3 SCAR 17.4
CC
3
Cov
64%
Dump
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
↑ Summary
1 package Data::Dumper::Hash;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 require Exporter;
5 1 ▶use vars qw/@ISA @EXPORT @EXPORT_OK/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 our $VERSION = '1.0';
7 1 @ISA = qw/Exporter/;
8 1 @EXPORT = qw/Dump/;
9 1 @EXPORT_OK = qw/Dump/;
10  
11  
12 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub Dump {
Subroutine Dump: not called CC=3 SCAR=24.8
Pod documented
15 0 my @params = @_;
16 0 my @vals = ();
17 0 my @names = ();
18  
19 0 for my $i (0 .. $#params) {
20 0 ▶ if (mod($i/2)) {
Branch: 1 branch
BranchTrueFalseTotal
if (mod($i / 2)) { } 0 0 0
21 0 push(@vals, $params[$i]);
22 }
23 else {
24 0 push(@names, $params[$i]);
25 }
26 }
27 0 return Data::Dumper->Dump(\@vals, \@names);
28 }
29 1 1;
30 __END__
↑ Summary