Condition Coverage

lib/Schedule/Cron/Events.pm
Criterion Covered Total %
condition 68 119 57.1


and 3 conditions

line !l l&&!r l&&r condition
59 0 25 1 time < 2147483648 and $date[5] > 137
191 1 7 18 @{$ranges{'daynums'};} and $ranges{'daynums'}[0] == 0
197 1 3 22 @{$ranges{'months'};} and $ranges{'months'}[0] == 0
203 1 6 19 @{$ranges{'weekdays'};} and $ranges{'weekdays'}[-1] == 7
211 16 7 3 $crondate[2] ne '*' and $crondate[4] ne '*'
7 11 5 $crondate[2] eq '*' and $crondate[4] ne '*'
0 11 7 $crondate[4] eq '*' and $crondate[2] ne '*'
231 5 14 1 @{$ranges{'daynums'};} and $ranges{'daynums'}[-1] > 31
232 12 6 1 @{$ranges{'weekdays'};} and $ranges{'weekdays'}[-1] > 6

or 2 conditions

line l !l condition
234 17 1 $crondate[5] || '#nothing'

or 3 conditions

line l !l&&r !l&&!r condition
16 32 0 0 shift() || confess('You must supply a line from a crontab')
44 0 0 26 $date[0] < 0 or $date[0] > 59
47 0 0 26 $date[1] < 0 or $date[1] > 59
50 0 0 26 $date[2] < 0 or $date[2] > 23
53 0 0 26 $date[3] < 1 or $date[2] > 31
56 0 0 26 $date[4] < 0 or $date[4] > 11
101 70 0 0 shift() || confess('Must be called as a method')
108 42 0 0 shift() || confess('Must be called as a method')
114 1 0 0 shift() || confess('Must be called as a method')
119 34 0 0 shift() || confess('Must be called as a method')
162 2 0 2 not $rv or $pos == -1
170 0 0 0 shift() || confess('Must be called as a method')
177 26 0 0 shift() || confess('Must supply a crontab line')
205 1 0 18 not @{$ranges{'weekdays'};} or $ranges{'weekdays'}[0] != 0
225 7 16 1 @{$ranges{'weekdays'};} or @{$ranges{'daynums'};}
257 112 0 0 shift() || confess('Must be called as a method')
263 102 0 0 shift() || confess('Must be called as a method')
294 76 0 0 shift() || confess('Must be called as a method')
296 6 52 18 $self->{'pd'} == 0 or $self->{'pd'} > $#{$$self{'h'};}
303 58 0 0 shift() || confess('Must be called as a method')
305 0 46 12 $self->{'pc'} == 0 or $self->{'pc'} > $#{$$self{'g'};}
312 52 0 0 shift() || confess('Must be called as a method')
314 6 18 28 $self->{'pb'} == 0 or $self->{'pb'} > $#{$$self{'f'};}
327 37 0 0 shift() || confess('Must be called as a method')
329 2 13 22 $self->{'pa'} == 0 or $self->{'pa'} > $#{$$self{'e'};}
352 42 0 0 shift() || confess('Must be called as a method')
361 38 0 0 shift() || confess('Must be called as a method')
370 30 0 0 shift() || confess('Must be called as a method')
379 31 0 0 shift() || confess('Must be called as a method')
395 14 0 190 !($year % 400) || !($year % 4) && $year % 100