File Coverage

blib/lib/Data/Quantity/Time/DayOfMonth.pm
Criterion Covered Total %
statement 15 18 83.3
branch 0 2 0.0
condition n/a
subroutine 5 7 71.4
pod 0 3 0.0
total 20 30 66.6


line stmt bran cond sub pod time code
1             ### Change History
2             # 1998-12-02 Created. -Simon
3              
4             package Data::Quantity::Time::DayOfMonth;
5              
6             require 5;
7 1     1   6 use strict;
  1         3  
  1         36  
8 1     1   5 use Carp;
  1         2  
  1         75  
9              
10 1     1   6 use vars qw( $VERSION );
  1         1  
  1         55  
11             $VERSION = 0.001;
12              
13 1     1   11 use Data::Quantity::Number::Integer '-isasubclass';
  1         2  
  1         8  
14              
15             # undef = Data::Quantity::Time::DayOfMonth->scale();
16             sub scale {
17 0     0 0 0 return 'DayOfMonth';
18             }
19              
20             # $value = Data::Quantity::Time::DayOfMonth->readable_value($number)
21             sub readable_value {
22 5     5 0 4 my $class_or_item = shift;
23 5         5 my $value = shift;
24            
25 5         21 return $value;
26             }
27              
28             # $padded = $quantity->zero_padded();
29             sub zero_padded {
30 0     0 0   my $date = shift;
31 0 0         $date->SUPER::zero_padded( scalar @_ ? @_ : 2 );
32             }
33              
34             1;