Branch Coverage

blib/lib/MHFS/Settings.pm
Criterion Covered Total %
branch 0 108 0.0


line true false branch
30 0 0 unless (defined $type)
31 0 0 if (defined $value)
35 0 0 if ($raw or $noindent)
40 0 0 if (not defined $value) { }
0 0 elsif ($value eq '__indent-') { }
57 0 0 if ($type eq "NOP")
61 0 0 unless $noindent
62 0 0 if ($type eq 'SCALAR') { }
0 0 elsif ($type eq 'HASH') { }
0 0 elsif ($type eq 'ARRAY') { }
64 0 0 unless ($raw)
71 0 0 unless $raw
104 0 0 if ($source->{'type'} ne "local")
116 0 0 if (exists $sources->{$shortid})
120 0 0 unless substr($oldid, 0, $len) eq substr($id, 0, $len)
121 0 0 unless length $id > $len
142 0 0 if (exists $launchsettings->{'CFGDIR'})
146 0 0 if (exists $launchsettings->{'APPDIR'})
147 0 0 unless -d $launchsettings->{'APPDIR'}
150 0 0 if (exists $launchsettings->{'FALLBACK_DATA_ROOT'})
156 0 0 unless ($CFGDIR)
158 0 0 if $ENV{'APPDATA'}
162 0 0 if $cfg_fallback
164 0 0 if $XDG_CONFIG_HOME
168 0 0 if (-d "$cfgdir/mhfs")
173 0 0 if $XDG_CONFIG_HOME
174 0 0 unless defined $CFGDIR
181 0 0 unless ($SETTINGS)
182 0 0 if $@
183 0 0 if -e $SETTINGS_FILE
197 0 0 unless (-f $SETTINGS_FILE)
201 0 0 if exists $launchsettings->{'flush'}
211 0 0 if $ENV{'APPDATA'}
212 0 0 if ($FALLBACK_DATA_ROOT)
219 0 0 unless $rule->[0] =~ m[^([^/]+)(?:/(\d{1,2}))?$]u
222 0 0 unless $cidr >= 0 and $cidr <= 32
229 0 0 if $rule->[1]
231 0 0 if ($rule->[2])
233 0 0 if (index($absurl, "/", length($absurl) - 1) != -1)
237 0 0 if ($rule->[3])
243 0 0 unless ($SETTINGS->{'DOCUMENTROOT'})
248 0 0 if $ENV{'XDG_CACHE_HOME'}
249 0 0 if $FALLBACK_DATA_ROOT
250 0 0 unless defined $tmpdir
252 0 0 unless ($SETTINGS->{'RUNTIME_DIR'})
254 0 0 unless ($RUNTIMEDIR)
261 0 0 if $ENV{'XDG_DATA_HOME'}
262 0 0 if $FALLBACK_DATA_ROOT
263 0 0 unless defined $datadir
277 0 0 if (ref $srcs ne "ARRAY")
284 0 0 if ($stype ne "HASH")
285 0 0 if ($stype ne "")
291 0 0 if ($tohash->{'type'} eq "local")
321 0 0 if $FALLBACK_DATA_ROOT