File Coverage

blib/lib/Rose/HTML/Form/Field/DateTime/Split.pm
Criterion Covered Total %
statement 10 10 100.0
branch 2 2 100.0
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             use strict;
3 5     5   35  
  5         12  
  5         151  
4             use base qw(Rose::HTML::Form::Field::Compound Rose::HTML::Form::Field::DateTime);
5 5     5   22  
  5         9  
  5         1934  
6             our $VERSION = '0.606';
7              
8             # Multiple inheritence never quite works out the way I want it to...
9             Rose::HTML::Form::Field::DateTime->import_methods
10             (
11             'inflate_value',
12             );
13              
14             Rose::HTML::Form::Field::Compound->import_methods
15             (
16             'name',
17             );
18              
19             {
20             my($self) = shift;
21              
22 18     18 1 62 my $ok = $self->Rose::HTML::Form::Field::Compound::validate(@_);
23             return $ok unless($ok);
24 18         68  
25 18 100       47 return $self->Rose::HTML::Form::Field::DateTime::validate(@_);
26             }
27 15         59  
28             1;