blib/lib/DateTimeX/ISO8601/Interval.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 46 | 61 | 75.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
38 | 21 | 11 | 1 | $duration && !$duration->clock_duration->is_zero |
118 | 0 | 120 | 0 | $args{'start'} and $args{'end'} |
142 | 129 | 0 | 3 | $input and not ref $input |
201 | 0 | 1 | 1 | $$self{'start'} and $$self{'end'} |
256 | 57 | 38 | 16 | $repeat >= 0 and $counter >= $repeat |
262 | 66 | 27 | 2 | $until and $next_interval->contains($until) |
284 | 39 | 0 | 0 | $$self{'time_zone'} and $date->time_zone->is_floating |
288 | 1 | 28 | 10 | $self->start <= $date && $self->end > $date |
324 | 19 | 43 | 1 | $$self{'precision'} ne 'date' and grep {$_->millisecond > 0 if $_;} $start, $end |
335 | 1 | 51 | 4 | $start and $args{'abbreviate'} |
361 | 0 | 0 | 1 | not eval { do { $tz->isa('DateTime::TimeZone') } } and 'DateTime::TimeZone'->is_valid_name($tz) |
line | l | !l | condition |
---|---|---|---|
94 | 0 | 21 | $args{'end_of_month'} || 'limit' |
232 | 2 | 10 | delete $args{'skip'} || 0 |
249 | 10 | 2 | $self->repeat || 1 |
254 | 3 | 108 | shift() || 1 |
301 | 5 | 58 | $$self{'abbreviate'} || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
70 | 40 | 0 | 7 | $args{'start'} or $args{'end'} |
1 | 0 | 6 | $args{'start'} or $args{'end'} or $args{'duration'} | |
118 | 22 | 0 | 120 | $args{'duration'} or $args{'start'} and $args{'end'} |
156 | 129 | 0 | 3 | $$self{'start'} || ($$self{'end'} ? $$self{'end'} - $$self{'duration'} : undef) |
235 | 11 | 1 | 0 | $self->start || $args{'after'} |
274 | 38 | 0 | 2 | $$self{'start'} or $$self{'end'} |