Branch Coverage

blib/lib/DateTimeX/Lite/TimeZone/Local/Unix.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
28 0 0 unless -r $lt_file and -s _
31 0 0 if (-l $lt_file)
39 0 0 if (defined $real_name)
43 0 0 if defined $_
48 0 0 $x < $#parts ? :
60 0 0 if $tz
81 0 0 unless -d '/usr/share/zoneinfo'
99 0 0 if (not defined $real_name and -f $_ and not -l $_ and $size == -s _ and File::Basename::basename($_) ne 'posixrules' and File::Compare::compare($_, $file_to_match) == 0)
123 0 0 if ($@)
125 0 0 if ref $@ and $$@{'found'}
136 0 0 unless -f $tz_file and -r _
139 0 0 unless open TZ, "<$tz_file"
146 0 0 unless $class->_IsValidName($name)
158 0 0 unless -f $tz_file and -r _
161 0 0 unless open TZ, "<$tz_file"
167 0 0 if ($name =~ /\A\s*TZ\s*=\s*(\S+)/)
176 0 0 unless $class->_IsValidName($name)
187 0 0 unless -r '/etc/sysconfig/clock' and -f _
191 0 0 unless $class->_IsValidName($name)
204 0 0 unless open CLOCK, '
210 0 0 if /^(?:TIME)?ZONE="([^"]+)"/
218 0 0 unless -r '/etc/default/init' and -f _
222 0 0 unless $class->_IsValidName($name)
235 0 0 unless open INIT, '
241 0 0 if /^TZ=(.+)/