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 20     20   368 use 5.012;
  20         72  
3 20     20   113 use Panda::Date;
  20         184  
  20         1909  
4              
5 20         203 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 20     20   129 fallback => 1;
  20         54  
16              
17             1;