Condition Coverage

blib/lib/DateTime/Event/Cron.pm
Criterion Covered Total %
condition 41 74 55.4


and 2 conditions

line l !l condition
231 0 5 $date->truncate('to', 'month') and next
236 0 5 $date->truncate('to', 'day') and next
241 0 5 $date->truncate('to', 'hour') and next
286 0 9 $self->_unit_peak($date, 'month') and next
293 0 3 $self->_unit_peak($date, 'day') and next
301 0 2 $self->_unit_peak($date, 'hour') and next
567 0 27 ++$pass and last MONTH

and 3 conditions

line !l l&&!r l&&r condition
48 7 0 4 ref $set and not $@
90 0 0 0 ref $dtc and not $@
119 113 24 295 $self->minute->contains($date->minute) and $self->hour->contains($date->hour)
137 18 277 $self->minute->contains($date->minute) and $self->hour->contains($date->hour) and $self->days_contain($date->day, $date->dow)
129 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)
313 0 0 54 $date and $unit
541 40 0 4 @line > 1 and $line[0] =~ /^\w+$/
558 14 15 6 scalar @dom_list == scalar @$dom_range && scalar @dow_list != scalar @$dow_range
560 8 15 12 scalar @dow_list == scalar @$dow_range && scalar @dom_list != scalar @$dom_range
591 157 32 3 $name eq 'dow' and $set->contains(0)
611 0 0 1832 defined $dom and defined $dow
663 0 0 202 defined $string and ref $range

or 3 conditions

line l !l&&r !l&&!r condition
58 0 0 22 $sparms{'next'} or $sparms{'recurrence'}
0 0 22 $sparms{'next'} or $sparms{'recurrence'} or $sparms{'previous'}
118 0 12 432 not $date or $date->second
139 98 1 0 $date || 'DateTime'->now
144 80 1 0 $date || 'DateTime'->now
358 19 0 21 $next_day <= $last_day or $@
399 21 0 10 $prev_day >= $last_day or $@