Condition Coverage

blib/lib/DateTime/Event/Cron.pm
Criterion Covered Total %
condition 33 62 53.2


and 2 conditions

line l !l condition
232 0 11 $date->truncate('to', 'month') and next
237 0 5 $date->truncate('to', 'day') and next
242 0 5 $date->truncate('to', 'hour') and next
287 0 24 $self->_unit_peak($date, 'month') and next
294 0 3 $self->_unit_peak($date, 'day') and next
302 0 2 $self->_unit_peak($date, 'hour') and next
514 0 21 ++$pass and last MONTH

and 3 conditions

line !l l&&!r l&&r condition
47 7 0 4 ref $set and not $@
89 0 0 0 ref $dtc and not $@
118 197 49 338 $self->minute->contains($date->minute) and $self->hour->contains($date->hour)
246 16 322 $self->minute->contains($date->minute) and $self->hour->contains($date->hour) and $self->days_contain($date->day, $date->dow)
128 0 0 0 $self->minute->contains($date->minute) and $self->hour->contains($date->hour)
0 0 0 $self->minute->contains($date->minute) and $self->hour->contains($date->hour) and $self->days_contain($date->day, $date->dow)
314 0 0 113 $date and $unit
488 34 0 4 @line > 1 and $line[0] =~ /^\w+$/
505 14 9 6 scalar @day_list == scalar @$day_range && scalar @dow_list != scalar @$dow_range
507 8 9 12 scalar @dow_list == scalar @$dow_range && scalar @day_list != scalar @$day_range
538 133 26 3 $name eq 'dow' and $set->contains(0)
558 0 0 2410 defined $day and defined $dow
610 0 0 172 defined $string and ref $range

or 3 conditions

line l !l&&r !l&&!r condition
56 0 0 22 $sparms{'next'} or $sparms{'recurrence'}
0 0 22 $sparms{'next'} or $sparms{'recurrence'} or $sparms{'previous'}
117 0 12 584 not $date or $date->second