Utils/LowerCase.pm

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