lib/Dancer2/Core.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 17 / 17 CC 2 SCAR 4.1
CC
2
Cov
100%
camelize
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« lib/Dancer2/Core/Types.pm ↑ Summary lib/Dancer2/Core/Hook.pm »
1 package Dancer2::Core;
2 # ABSTRACT: Core libraries for Dancer2 2.0
3 240 $Dancer2::Core::VERSION = '2.3.0';
4 240 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 240 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1988 ▶sub camelize {
Subroutine camelize: called CC=2 SCAR=6.9
Pod documented
8 1988 my ($value) = @_;
9  
10 1988 my $camelized = '';
11 1988 for my $word ( split /_/, $value ) {
12 2012 $camelized .= ucfirst($word);
13 }
14 1988 return $camelized;
15 }
16  
17  
18 240 1;
19  
20 __END__
« lib/Dancer2/Core/Types.pm ↑ Summary lib/Dancer2/Core/Hook.pm »