Branch Coverage

blib/lib/Business/Hours.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
164 1 0 if (@_)
185 6 40 unless $$span{$which} and $$span{$which} =~ /^(\d+)\D(\d+)$/
190 0 20 if $$span{'EndHour'} * 60 + $$span{'EndMinute'} <= $$span{'StartHour'} * 60 + $$span{'StartMinute'}
198 6 15 unless ($$bizdays{$dow} and ref $$bizdays{$dow} eq 'HASH' and &$process_start_end($$bizdays{$dow}))
206 10 5 unless $$bizdays{$dow}{'Breaks'}
207 0 5 unless $break and ref $break eq 'HASH'
208 5 0 if &$process_start_end($break)
230 1 16 if (@_)
233 11 6 unless $$self{'holidays'}
328 34 85 unless my $day_hours = $$bizdays{$dow}
332 75 10 unless $$bizdays{$dow}{'Breaks'}
352 4 10 if (my(@holidays) = $self->holidays)
359 0 12 if ($year) { }
368 9 3 if $start_year != $end_year
404 1 4 unless (defined $$self{'start'} and defined $$self{'end'})
411 0 5 if ($start < $$self{'start'})
414 0 5 if ($end > $$self{'end'})
446 0 5 if ($end >= $MAXTIME)
483 0 4 if ($end >= $start + $MAXTIME)