Branch Coverage

blib/lib/File/Save/Home.pm
Criterion Covered Total %
branch 40 60 66.6


line true false branch
126 0 9 if ($^O eq 'MSWin32') { }
131 0 0 if -d $realhome
133 0 0 if -d $realhome
138 9 0 if -d $realhome
202 2 4 if $_[0]
203 2 4 if (defined $pseudohome)
204 1 1 unless -d $pseudohome
206 1 4 defined $pseudohome ? :
212 1 4 if (-d $dirname) { }
241 3 0 unless (-d $dirname)
242 0 3 unless mkpath($dirname)
261 0 3 unless -d $home
265 3 0 if (not defined $desired_dir_ref->{'flag'}) { }
270 5 1 if (not -l $_ and -d _) { }
271 0 5 unless rmdir $_
273 0 1 unless unlink $_
277 3 0 !(-d $desired_dir) ? :
315 2 1 if $_[0]
316 2 1 if (defined $pseudohome)
317 1 1 unless -d $pseudohome
319 1 1 defined $pseudohome ? :
323 2 0 $tdir ? :
389 1 1 if (-f $targ{'full'}) { }
393 0 1 unless rename $targ{'full'}, $targ{'hidden'}
394 1 0 if ($test_flag)
399 1 0 if ($test_flag)
424 1 1 if (-f $target_ref->{'hidden'}) { }
426 0 1 unless rename $target_ref->{'hidden'}, $target_ref->{'full'}
427 1 0 if ($target_ref->{'test'})
438 1 0 if ($target_ref->{'test'})