File Coverage

blib/arch/Panda/Date/Int.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package Panda::Date::Int;
2 18     18   251 use 5.012;
  18         55  
3 18     18   83 use Panda::Date;
  18         114  
  18         1346  
4              
5 18         242 use overload '""' => \&to_string,
6             'bool' => \&to_bool,
7             '0+' => \&to_number,
8             '<=>' => \&compare, # for idates - based on duration
9             'eq' => \&equals, # absolute matching (from == from and till == till)
10             '+' => \&add_new,
11             '+=' => \&add,
12             '-' => \&subtract_new,
13             '-=' => \&subtract,
14             'neg' => \&negative_new,
15 18     18   88 fallback => 1;
  18         32  
16              
17             1;