| blib/arch/Panda/Date/Int.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 3 | 5 | 60.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 2 | 100.0 |
| pod | n/a | ||
| total | 5 | 7 | 71.4 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Panda::Date::Int; | ||||||
| 2 | 1 | 1 | 1586 | use 5.012; | |||
| 1 | 3 | ||||||
| 3 | 1 | 1 | 29 | use Panda::Date; | |||
| 0 | |||||||
| 0 | |||||||
| 4 | |||||||
| 5 | 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 | fallback => 1; | ||||||
| 16 | |||||||
| 17 | 1; |