blib/lib/Time/WorkHours.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 16 | 81.2 |
line | true | false | branch |
---|---|---|---|
95 | 0 | 207 | unless defined $self->work_interval_start |
97 | 0 | 207 | unless defined $self->work_interval |
119 | 2553 | 1 | if ($date) { } |
156 | 1 | 1 | if $work_start < $date |
197 | 359 | 713 | if $date >= $work_start_datetime and $date < $work_end_datetime |
238 | 0 | 103 | if ref $date ne 'DateTime' |
268 | 2358 | 300 | if ($work_interval_start =~ /\b([0-9]+)h$/) { } |
287 | 2932 | 900 | if ($work_interval =~ /\b([0-9]+)h$/) { } |