Condition Coverage

blib/lib/XML/RSS/Timing.pm
Criterion Covered Total %
condition 55 104 52.8


and 3 conditions

line !l l&&!r l&&r condition
180 0 0 287 defined $h and length $h
0 0 287 defined $h and length $h and $h =~ /^\d\d?$/s
0 0 287 defined $h and length $h and $h =~ /^\d\d?$/s and $h >= 0
0 0 287 defined $h and length $h and $h =~ /^\d\d?$/s and $h >= 0 and $h <= 23
205 0 0 141 defined $d and length $d
233 0 0 44 @_ == 2 and defined $freq
0 0 44 @_ == 2 and defined $freq and $freq =~ /^\d{1,5}$/s
266 0 0 209 @_ == 2 and defined $base
0 0 209 @_ == 2 and defined $base and length $base
296 0 0 65 @_ == 2 and defined $period
0 0 65 @_ == 2 and defined $period and length $period
359 0 0 2 @_ == 2 and defined $ttl
0 0 2 @_ == 2 and defined $ttl and $ttl =~ /^\d{1,6}$/s
398 0 0 3 @_ == 2 and defined $max
0 0 3 @_ == 2 and defined $max and $max =~ /^\d{1,9}$/s
435 0 0 5 @_ == 2 and defined $min
0 0 5 @_ == 2 and defined $min and $min =~ /^\d{1,9}$/s
553 1093 39 0 $h == $start_hour and $d == $start_day
696 435 31 0 $s_fract and $s_fract >= 0.5

or 2 conditions

line l !l condition
238 44 0 $freq || 1
479 0 3 $self->minAge || 0
482 41 93 $$self{'updateBase_sec'} || 0
583 65 69 $$self{'updatePeriod_sec'} || 0
44 90 $self->updateFrequency || 1
591 9 60 $self->ttl || 0
601 35 30 $$self{'updateBase_sec'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
151 0 154 0 ref $self || $self
473 65 9 63 defined $$self{'updatePeriod_sec'} or $self->ttl
74 60 3 defined $$self{'updatePeriod_sec'} or $self->ttl or $self->skipHours
69 0 3 defined $$self{'updatePeriod_sec'} or $self->ttl or $self->skipHours or $self->skipDays
562 1014 118 134 $day_is_skippable[$d] or $hour_is_skippable[$h]
679 1 1 470 $Y < 1902 or $Y > 2037
680 0 2 468 $M < 1 or $M > 12
681 0 1 467 $D < 1 or $D > 31
682 0 0 467 $h < 0 or $h > 23
683 0 0 467 $h < 0 or $h > 59
684 0 0 467 $h < 0 or $h > 60