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