| 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)])
MC/DC0%0/1
shift() || confess(q['dump' expects a variable (got nothing)])
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||
| 21 | 1 | my $result = $hash->fetch( $args ); | |||||||||||
| 22 | 1 | return Dumper( $result ); | |||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | 1 | 1; | |||||||||||