Branch Coverage

blib/lib/Time/TZif.pm
Criterion Covered Total %
branch 0 112 0.0


line true false branch
23 0 0 unless @_ & 1 and @_ >= 3
29 0 0 if ($key eq 'filename') { }
0 0 elsif ($key eq 'gap_policy') { }
0 0 elsif ($key eq 'overlap_policy') { }
33 0 0 unless defined $v and exists $ValidPolicy{$v}
38 0 0 unless defined $v and exists $ValidPolicy{$v}
47 0 0 unless defined $filename
53 0 0 unless open my $fh, "<:raw", $filename
74 0 0 unless defined $got
76 0 0 unless $got == $len
86 0 0 unless $magic == 1415211366
91 0 0 if ($version eq '2' or $version eq '3') { }
101 0 0 if $v1_size
106 0 0 unless $magic == 1415211366
116 0 0 unless $nl eq "\n"
122 0 0 unless defined $byte
123 0 0 if $byte eq "\n"
126 0 0 if length $posix_tz
138 0 0 unless $typecnt >= 1
140 0 0 unless $timecnt <= 2400
142 0 0 unless $typecnt <= 256
144 0 0 unless $charcnt <= 256
147 0 0 $time_size == 8 ? :
156 0 0 unless $idx < $typecnt
165 0 0 unless $offset > -86400 and $offset < 86400
167 0 0 unless $dst == 0 or $dst == 1
169 0 0 unless $abbridx < $charcnt
187 0 0 $time_size == 8 ? :
189 0 0 if $skip
199 0 0 unless ($type->[1])
218 0 0 unless @_ == 1
220 0 0 wantarray ? :
224 0 0 unless @_ == 2
230 0 0 unless @_ == 2
237 0 0 unless @_ >= 2
243 0 0 unless @_ >= 2
249 0 0 unless (@_ & 1) == 0 and @_ >= 2
255 0 0 if ($key eq 'gap_policy') { }
0 0 elsif ($key eq 'overlap_policy') { }
256 0 0 unless defined $v and exists $ValidPolicy{$v}
261 0 0 unless defined $v and exists $ValidPolicy{$v}
274 0 0 unless @$times
282 0 0 if $lo >= $hi
293 0 0 if ($prev_off < $next_off) { }
0 0 elsif ($prev_off > $next_off) { }
295 0 0 if ($prev_off <= $boundary and $boundary < $next_off)
300 0 0 if $boundary >= $next_off
304 0 0 if ($next_off <= $boundary and $boundary < $prev_off)
309 0 0 if $boundary >= $prev_off
312 0 0 if $boundary >= $prev_off
322 0 0 if ($policy eq 'earlier') { }
0 0 elsif ($policy eq 'later') { }
0 0 elsif ($policy eq 'std') { }
0 0 elsif ($policy eq 'dst') { }
325 0 0 $prev->[1] ? :
328 0 0 $prev->[1] ? :