| 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.0.1'; | ||||||
| 4 | 203 | 203 | 321238 | use strict; | |||
| 203 | 573 | ||||||
| 203 | 8665 | ||||||
| 5 | 203 | 203 | 1334 | use warnings; | |||
| 203 | 601 | ||||||
| 203 | 34453 | ||||||
| 6 | |||||||
| 7 | sub camelize { | ||||||
| 8 | 1638 | 1638 | 1 | 794285 | my ($value) = @_; | ||
| 9 | |||||||
| 10 | 1638 | 3069 | my $camelized = ''; | ||||
| 11 | 1638 | 5406 | for my $word ( split /_/, $value ) { | ||||
| 12 | 1653 | 4521 | $camelized .= ucfirst($word); | ||||
| 13 | } | ||||||
| 14 | 1638 | 4607 | return $camelized; | ||||
| 15 | } | ||||||
| 16 | |||||||
| 17 | |||||||
| 18 | 1; | ||||||
| 19 | |||||||
| 20 | __END__ |