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 /usr/local/bin/prove »
1 package Dancer2::Core;
2 # ABSTRACT: Core libraries for Dancer2 2.0
3 232 $Dancer2::Core::VERSION = '2.2.1';
4 232 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 232 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 sub camelize {
8 1959 ▶ my ($value) = @_;
Subroutine camelize: called CC=2 SCAR=6.9
Pod documented
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 232 1;
19  
20 __END__
« blib/lib/Dancer2/Core/Types.pm ↑ Summary /usr/local/bin/prove »