blib/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
« blib/lib/Dancer2/Core/Types.pm ↑ Summary blib/lib/Dancer2/Core/Hook.pm »
1 package Dancer2::Core;
2 # ABSTRACT: Core libraries for Dancer2 2.0
3 234 $Dancer2::Core::VERSION = '2.2.2';
4 234 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 234 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1959 ▶sub camelize {
Subroutine camelize: called CC=2 SCAR=6.9
Pod documented
8 1959 my ($value) = @_;
9  
10 1959 my $camelized = '';
11 1959 for my $word ( split /_/, $value ) {
12 1983 $camelized .= ucfirst($word);
13 }
14 1959 return $camelized;
15 }
16  
17  
18 234 1;
19  
20 __END__
« blib/lib/Dancer2/Core/Types.pm ↑ Summary blib/lib/Dancer2/Core/Hook.pm »