File Coverage

blib/arch/Panda/Date/Rel.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 13 13 100.0


line stmt bran cond sub pod time code
1             package Panda::Date::Rel;
2 18     18   245 use 5.012;
  18         54  
3 18     18   79 use Panda::Date;
  18         29  
  18         2051  
4              
5             use overload '""' => \&to_string,
6             'bool' => \&to_bool,
7             '0+' => \&to_number,
8             'neg' => \&negative_new,
9             '<=>' => \&compare, # based on to_sec()
10             'eq' => \&equals, # based on full equality only
11             '+' => \&add_new,
12             '+=' => \&add,
13             '-' => \&subtract_new,
14             '-=' => \&subtract,
15             '*' => \&multiply_new,
16             '*=' => \&multiply,
17             '/' => \÷_new,
18             '/=' => \÷,
19 8     8   15142 '=' => sub { $_[0] },
20 18     18   13262 fallback => 1;
  18         11259  
  18         228  
21            
22             1;