FormHandler/Field/Year.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
__ANON__
1.0
CRAP 1.0
« FormHandler/Field/Second.pm ↑ Summary FormHandler/I18N/en_us.pm »
1 package HTML::FormHandler::Field::Year;
2 # ABSTRACT: year selection list
3 2 $HTML::FormHandler::Field::Year::VERSION = '0.410002';
4 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 extends 'HTML::FormHandler::Field::IntRange';
6  
7 has '+range_start' => (
8 2 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
9 2 my $year = (localtime)[5] + 1900 - 5;
10 2 return $year;
11 }
12 2 );
13 has '+range_end' => (
14 2 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
15 2 my $year = (localtime)[5] + 1900 + 10;
16 2 return $year;
17 }
18 2 );
19  
20  
21 2 __PACKAGE__->meta->make_immutable;
22 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 2 1;
24  
25 __END__
« FormHandler/Field/Second.pm ↑ Summary FormHandler/I18N/en_us.pm »