Branch Coverage

blib/lib/Time/Zone.pm
Criterion Covered Total %
branch 22 60 36.6


line true false branch
24 0 0 $ENV{'TZ'} ? :
0 0 defined $ENV{'TZ'} ? :
0 0 unless $TZ
31 0 0 unless (defined $isdst)
33 0 0 unless $time
37 0 0 if (defined $tzn_cache{$TZ}[$isdst])
42 0 0 if ($TZ =~ m[/])
45 0 0 $isdst ? :
48 0 0 if ($TZ =~ /^ ( [^:\d+\-,] {3,} ) ( [+-] ? \d {1,2} ( : \d {1,2} ) {0,2} ) ( [^\d+\-,] {3,} )? /x) { }
57 0 0 defined $4 ? :
58 0 0 $isdst ? :
71 3 175 unless $time
75 171 7 if (defined $tz_local[$isdst])
99 7 0 if ($l[7] == $g[7]) { }
0 0 elsif ($l[7] == $g[7] + 1) { }
0 0 elsif ($l[7] == $g[7] - 1) { }
0 0 elsif ($l[7] < $g[7]) { }
125 0 0 if ($had_tz) { }
134 0 0 unless defined $dst
141 0 0 unless $time
258 2 1105 unless $zone
260 1094 11 unless $time
265 0 1105 if ($zone =~ m[/])
271 15 1090 if ($zone =~ /^(([\-\+])\d\d?)(\d\d)$/) { }
14 1076 elsif (exists $dstZone{$zone} and $dst || !exists $Zone{$zone}) { }
1074 2 elsif (exists $Zone{$zone}) { }
286 0 13 unless defined $off
289 0 13 unless defined $dst
292 3 10 if (exists $dstZoneOff{$off} and $dst || !exists $zoneOff{$off}) { }
6 4 elsif (exists $zoneOff{$off}) { }