Branch Coverage

blib/lib/Time/Zone.pm
Criterion Covered Total %
branch 18 48 37.5


line true false branch
23 0 0 $ENV{'TZ'} ? :
0 0 defined $ENV{'TZ'} ? :
0 0 unless $TZ
30 0 0 unless (defined $isdst)
32 0 0 unless $time
36 0 0 if (defined $tzn_cache{$TZ}[$isdst])
40 0 0 if ($TZ =~ /^ ( [^:\d+\-,] {3,} ) ( [+-] ? \d {1,2} ( : \d {1,2} ) {0,2} ) ( [^\d+\-,] {3,} )? /x) { }
49 0 0 defined $4 ? :
50 0 0 $isdst ? :
63 1 159 unless $time
67 156 4 if (defined $tz_local[$isdst])
91 4 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]) { }
217 0 814 unless $zone
219 807 7 unless $time
225 9 805 if ($zone =~ /^(([\-\+])\d\d?)(\d\d)$/) { }
9 796 elsif (exists $dstZone{$zone} and $dst || !exists $Zone{$zone}) { }
794 2 elsif (exists $Zone{$zone}) { }
240 0 2 unless defined $off
243 2 0 unless defined $dst
246 0 2 if (exists $dstZoneOff{$off} and $dst || !exists $zoneOff{$off}) { }
2 0 elsif (exists $zoneOff{$off}) { }