Utils/Dump.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 92.6% 38 / 41 CC 2 SCAR 2.0
CC
2
Cov
97%
process
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Utils/UpperCase.pm ↑ Summary
1 package Petal::Utils::Dump;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use base qw( Petal::Utils::Base );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use constant name => 'dump';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use constant aliases => qw();
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 our $VERSION = ((require Petal::Utils), $Petal::Utils::VERSION)[1];
15 1 our $REVISION = (split(/ /, ' $Revision: 1.3 $ '))[2];
16  
17 1 ▶sub process {
Subroutine process: called CC=2 SCAR=7.0
Pod undocumented
18 1 my $class = shift;
19 1 my $hash = shift;
20 1 ▶ my $args = shift || confess( "'dump' expects a variable (got nothing)" );
Condition50%1/2
shift() || confess(q['dump' expects a variable (got nothing)])
l!l
10
MC/DC0%0/1
shift() || confess(q['dump' expects a variable (got nothing)])
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
21 1 my $result = $hash->fetch( $args );
22 1 return Dumper( $result );
23 }
24  
25 1 1;
« Utils/UpperCase.pm ↑ Summary