Branch Coverage

blib/lib/Time/Zone.pm
Criterion Covered Total %
branch 12 48 25.0


line true false branch
61 0 0 $ENV{'TZ'} ? :
0 0 defined $ENV{'TZ'} ? :
0 0 unless $TZ
68 0 0 unless (defined $isdst)
70 0 0 unless $time
74 0 0 if (defined $Time::Zone::tzn_cache{$TZ}[$isdst])
78 0 0 if ($TZ =~ /^ ( [^:\d+\-,] {3,} ) ( [+-] ? \d {1,2} ( : \d {1,2} ) {0,2} ) ( [^\d+\-,] {3,} )? /x) { }
87 0 0 defined $4 ? :
88 0 0 $isdst ? :
100 0 157 unless $time
104 154 3 if (defined $Time::Zone::tz_local[$isdst])
128 3 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]) { }
254 0 639 unless $zone
256 632 7 unless $time
262 4 635 if ($zone =~ /^(([\-\+])\d\d?)(\d\d)$/) { }
3 632 elsif (exists $Time::Zone::dstZone{$zone} and $dst || !exists $Time::Zone::Zone{$zone}) { }
632 0 elsif (exists $Time::Zone::Zone{$zone}) { }
277 0 0 unless defined $off
280 0 0 unless defined $dst
283 0 0 if (exists $Time::Zone::dstZoneOff{$off} and $dst || !exists $Time::Zone::zoneOff{$off}) { }
0 0 elsif (exists $Time::Zone::zoneOff{$off}) { }