File Coverage

blib/lib/Dancer2/Core.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Dancer2::Core;
2             # ABSTRACT: Core libraries for Dancer2 2.0
3             $Dancer2::Core::VERSION = '2.1.0';
4 209     209   358486 use strict;
  209         515  
  209         9249  
5 209     209   1307 use warnings;
  209         540  
  209         35472  
6              
7             sub camelize {
8 1687     1687 1 842832 my ($value) = @_;
9              
10 1687         3486 my $camelized = '';
11 1687         6302 for my $word ( split /_/, $value ) {
12 1702         7450 $camelized .= ucfirst($word);
13             }
14 1687         5054 return $camelized;
15             }
16              
17              
18             1;
19              
20             __END__