Branch Coverage

blib/lib/Time/Available.pm
Criterion Covered Total %
branch 51 100 51.0


line true false branch
64 0 5 unless defined $$self{'ARGS'}{'start'}
68 0 5 if $debug
69 0 5 unless defined $hh
80 0 5 unless defined $$self{'ARGS'}{'end'}
83 0 5 if $debug
84 0 5 unless defined $hh
95 0 5 unless defined $$self{'ARGS'}{'dayMask'}
100 1 4 if ($start > $end) { }
105 5 0 $self ? :
120 1 13 if ($day == 0 and $dayMask & 64) { }
2 11 elsif ($day == 1 and $dayMask & 1) { }
0 11 elsif ($day == 2 and $dayMask & 2) { }
1 10 elsif ($day == 3 and $dayMask & 4) { }
9 1 elsif ($day == 4 and $dayMask & 8) { }
0 1 elsif ($day == 5 and $dayMask & 16) { }
0 2 elsif ($day == 6 and $dayMask & 32) { }
136 0 14 if $debug
186 1 9 unless $self->_dayOk($lt[6])
193 0 9 if $debug
195 5 4 if ($end > $start) { }
4 0 elsif ($start > $end) { }
196 1 4 if ($time < $start) { }
3 1 elsif ($time < $end) { }
202 1 3 if ($time < $end) { }
203 1 0 if ($time < $start) { }
209 3 0 if ($time < $start) { }
234 0 2 unless $self->_dayOk($lt[6])
241 0 2 if $debug
243 2 0 if ($end > $start) { }
0 0 elsif ($start > $end) { }
244 0 2 if ($time > $start and $time <= $end) { }
2 0 elsif ($time < $start) { }
250 0 0 if ($time < $end) { }
251 0 0 if ($time < $start) { }
257 0 0 if ($time < $start) { }
284 1 0 if $d > 0
286 0 1 if ($debug) { }
304 0 2 if $debug
305 0 2 if $debug
310 0 2 if $debug
313 0 2 if $debug
323 0 2 if $debug
326 0 0 if $debug
327 0 0 if $self->day_in_interval($t)
328 0 0 if $debug
332 0 2 if $debug
334 0 2 if ($to > $self->_start($to)) { }
335 0 0 if ($to <= $self->_end($to)) { }
0 0 elsif ($self->day_in_interval($to) and $loop_start_time < $loop_end_time) { }
343 0 2 if $debug