blib/lib/DTL/Fast/Filter/Timeuntil.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 20 | 21 | 95.2 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package DTL::Fast::Filter::Timeuntil; | ||||||
2 | 2 | 2 | 949 | use strict; use utf8; use warnings FATAL => 'all'; | |||
2 | 2 | 4 | |||||
2 | 2 | 54 | |||||
2 | 8 | ||||||
2 | 4 | ||||||
2 | 10 | ||||||
2 | 57 | ||||||
2 | 3 | ||||||
2 | 68 | ||||||
3 | 2 | 2 | 6 | use parent 'DTL::Fast::Filter::Timesince'; | |||
2 | 2 | ||||||
2 | 10 | ||||||
4 | |||||||
5 | $DTL::Fast::FILTER_HANDLERS{'timeuntil'} = __PACKAGE__; | ||||||
6 | |||||||
7 | #@Override | ||||||
8 | sub time_diff | ||||||
9 | { | ||||||
10 | 22 | 22 | 0 | 17 | my $self = shift; | ||
11 | 22 | 19 | my $diff = shift; | ||||
12 | 22 | 39 | return $self->SUPER::time_diff(-$diff); | ||||
13 | } | ||||||
14 | |||||||
15 | 1; |