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             # ABSTRACT: Core libraries for Dancer2 2.0
2             $Dancer2::Core::VERSION = '0.400000';
3             use strict;
4 155     155   58800 use warnings;
  155         332  
  155         5585  
5 155     155   699  
  155         380  
  155         15150  
6             my ($value) = @_;
7              
8 1691     1691 1 5313 my $camelized = '';
9             for my $word ( split /_/, $value ) {
10 1691         2574 $camelized .= ucfirst($word);
11 1691         4483 }
12 1704         4313 return $camelized;
13             }
14 1691         4018  
15              
16             1;
17              
18              
19             =pod
20              
21             =encoding UTF-8
22              
23             =head1 NAME
24              
25             Dancer2::Core - Core libraries for Dancer2 2.0
26              
27             =head1 VERSION
28              
29             version 0.400000
30              
31             =head1 FUNCTIONS
32              
33             =head2 camelize
34              
35             Camelize a underscore-separated-string.
36              
37             =head1 AUTHOR
38              
39             Dancer Core Developers
40              
41             =head1 COPYRIGHT AND LICENSE
42              
43             This software is copyright (c) 2022 by Alexis Sukrieh.
44              
45             This is free software; you can redistribute it and/or modify it under
46             the same terms as the Perl 5 programming language system itself.
47              
48             =cut