Condition Coverage

lib/Schedule/Cron/Events.pm
Criterion Covered Total %
condition 69 119 57.9


and 3 conditions

line !l l&&!r l&&r condition
61 0 25 1 time < 2147483648 and $date[5] > 137
193 1 8 18 @{$ranges{'daynums'};} and $ranges{'daynums'}[0] == 0
199 1 4 22 @{$ranges{'months'};} and $ranges{'months'}[0] == 0
205 1 6 20 @{$ranges{'weekdays'};} and $ranges{'weekdays'}[-1] == 7
213 16 8 3 $crondate[2] ne '*' and $crondate[4] ne '*'
8 11 5 $crondate[2] eq '*' and $crondate[4] ne '*'
0 11 8 $crondate[4] eq '*' and $crondate[2] ne '*'
233 5 15 1 @{$ranges{'daynums'};} and $ranges{'daynums'}[-1] > 31
234 13 6 1 @{$ranges{'weekdays'};} and $ranges{'weekdays'}[-1] > 6

or 2 conditions

line l !l condition
236 17 2 $crondate[5] || '#nothing'

or 3 conditions

line l !l&&r !l&&!r condition
18 33 0 0 shift() || confess('You must supply a line from a crontab')
46 0 0 26 $date[0] < 0 or $date[0] > 59
49 0 0 26 $date[1] < 0 or $date[1] > 59
52 0 0 26 $date[2] < 0 or $date[2] > 23
55 0 0 26 $date[3] < 1 or $date[2] > 31
58 0 0 26 $date[4] < 0 or $date[4] > 11
103 70 0 0 shift() || confess('Must be called as a method')
110 42 0 0 shift() || confess('Must be called as a method')
116 1 0 0 shift() || confess('Must be called as a method')
121 35 0 0 shift() || confess('Must be called as a method')
164 3 0 2 not $rv or $pos == -1
172 0 0 0 shift() || confess('Must be called as a method')
179 27 0 0 shift() || confess('Must supply a crontab line')
207 1 0 19 not @{$ranges{'weekdays'};} or $ranges{'weekdays'}[0] != 0
227 7 17 1 @{$ranges{'weekdays'};} or @{$ranges{'daynums'};}
259 112 0 0 shift() || confess('Must be called as a method')
265 108 0 0 shift() || confess('Must be called as a method')
296 76 0 0 shift() || confess('Must be called as a method')
298 6 52 18 $self->{'pd'} == 0 or $self->{'pd'} > $#{$$self{'h'};}
305 58 0 0 shift() || confess('Must be called as a method')
307 0 46 12 $self->{'pc'} == 0 or $self->{'pc'} > $#{$$self{'g'};}
314 52 0 0 shift() || confess('Must be called as a method')
316 6 18 28 $self->{'pb'} == 0 or $self->{'pb'} > $#{$$self{'f'};}
329 43 0 0 shift() || confess('Must be called as a method')
331 2 19 22 $self->{'pa'} == 0 or $self->{'pa'} > $#{$$self{'e'};}
354 42 0 0 shift() || confess('Must be called as a method')
363 38 0 0 shift() || confess('Must be called as a method')
372 30 0 0 shift() || confess('Must be called as a method')
381 31 0 0 shift() || confess('Must be called as a method')
397 14 36 166 !($year % 400) || !($year % 4) && $year % 100