blib/lib/Rose/HTML/Form/Field/DateTime/EndDate.pm

filter: Statementstmt 100% 16 / 16 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 25 / 25 CC 3 SCAR 6.9
CC
3
Cov
100%
inflate_value
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/Rose/HTML/Object/Error/Localized.pm ↑ Summary blib/lib/Rose/HTML/Text.pm »
1 package Rose::HTML::Form::Field::DateTime::EndDate;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use base 'Rose::HTML::Form::Field::DateTime';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = '0.606';
8  
9 sub inflate_value
10 32 ▶{
Subroutine inflate_value: called CC=3 SCAR=11.0
Pod documented
11 32 my($self) = shift;
12  
13 32 my $date = $self->SUPER::inflate_value(@_);
14  
15 32 ▶ return $date unless(UNIVERSAL::isa($date, 'DateTime'));
Branch: 1 branch
BranchTrueFalseTotal
unless UNIVERSAL::isa($date, "DateTime") 5 27 32
16  
17 2 ▶ no warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 # Pin to the last second of the day if no time is set
19 27 ▶ $date->set(hour => 23, minute => 59, second => 59, nanosecond => 999999999)
Branch: 1 branch
BranchTrueFalseTotal
unless $self->input_value_filtered =~ /\d:\d|[ap]\.?m/i 10 17 27
20 unless($self->input_value_filtered =~ /\d:\d|[ap]\.?m/i);
21  
22 27 return $date;
23 }
24  
25 2 1;
26  
27 __END__
« blib/lib/Rose/HTML/Object/Error/Localized.pm ↑ Summary blib/lib/Rose/HTML/Text.pm »