Branch Coverage

blib/lib/Time/Str/Util.pm
Criterion Covered Total %
branch 8 50 16.0


line true false branch
41 0 9 unless @_ == 0
43 0 6 if defined $ENV{'TZDIR'} and -d $ENV{'TZDIR'}
46 0 30 if -d $dir and -f "$dir/UTC"
51 0 6 if -d $macos and -f "$macos/UTC"
69 2 32 unless @_ == 1
97 2 26 unless @_ == 1
106 0 0 unless defined $tzdb_directory
110 0 0 unless $pos >= 0
115 0 0 unless valid_tzdb_timezone($name)
119 0 0 unless -f $file
126 0 0 unless @_ <= 1
134 0 0 if (defined $ENV{'TZ'})
138 0 0 unless (length $tz)
139 0 0 if (defined $tzdb_directory and -f "$tzdb_directory/UTC")
152 0 0 if (defined $tzdb_directory and valid_tzdb_timezone($tz))
154 0 0 if (-f $path)
160 0 0 if (valid_posix_timezone($tz))
169 0 0 if defined $tzif
175 0 0 if (defined $tzdb_directory and valid_tzdb_timezone($tz))
177 0 0 if (-f $path)
183 0 0 if (-f $tz)
191 0 0 if (defined $tzdb_directory)
193 0 0 if (defined $resolved)
195 0 0 if defined $tzif
199 0 0 if (-f "/etc/localtime")