FormHandler/Field/MonthName.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 94.4% 17 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
build_options
1.0
BEGIN
1.0
CRAP 1.0
« FormHandler/Field/BoolSelect.pm ↑ Summary FormHandler/Field/Weekday.pm »
1 package HTML::FormHandler::Field::MonthName;
2 # ABSTRACT: select list with month names
3 1 $HTML::FormHandler::Field::MonthName::VERSION = '0.410002';
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 extends 'HTML::FormHandler::Field::Select';
6  
7 1 ▶sub build_options {
Subroutine build_options: called CC=1 SCAR=0.0
Pod undocumented
8 1 my $i = 1;
9 1 my @months = qw/
10 January
11 February
12 March
13 April
14 May
15 June
16 July
17 August
18 September
19 October
20 November
21 December
22 /;
23 1 return [ map { { value => $i++, label => $_ } } @months ];
24 }
25  
26  
27 1 __PACKAGE__->meta->make_immutable;
28 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 1;
30  
31 __END__
« FormHandler/Field/BoolSelect.pm ↑ Summary FormHandler/Field/Weekday.pm »