Branch Coverage

blib/lib/Time/Piece/Over24.pm
Criterion Covered Total %
branch 31 36 86.1


line true false branch
19 650 2 if $time
25 288 578 if $time
74 288 294 if $datetime
84 0 938 if ($time =~ /^\d\d:\d\d:\d\d$/) { }
30 908 elsif ($time =~ /^\d\d:\d\d$/) { }
108 2651 7019 if ($offset)
111 0 2651 if ($offset =~ /^\d\d?$/) { }
0 2651 elsif ($offset =~ /^\d\d?:\d\d$/) { }
131 0 892 unless ((ref $start_time eq 'Time::Piece') == (ref $end_time eq 'Time::Piece'))
137 0 892 unless (length $start_time == length $end_time)
142 28 864 unless (ref $check_time eq 'Time::Piece')
145 10 18 if ($buf =~ /^\d\d:\d\d$/)
151 581 311 if (ref $start_time eq 'Time::Piece') { }
162 74 818 $start_t <= $check_time && $check_time <= $end_t ? :
172 882 1160 $self->over24_offset eq '00:00:00' ? :
183 882 1160 $self->over24_offset eq '00:00:00' ? :
184 254 1788 if $ts < 0
185 682 1360 if ($div > 0)