Branch Coverage

blib/lib/File/Save/Home.pm
Criterion Covered Total %
branch 39 58 67.2


line true false branch
127 0 9 if ($^O eq 'MSWin32') { }
132 0 0 if -d $realhome
134 0 0 if -d $realhome
139 9 0 if -d $realhome
203 2 4 if $_[0]
204 2 4 if (defined $pseudohome)
205 1 1 unless -d $pseudohome
207 1 4 defined $pseudohome ? :
213 1 4 if (-d $dirname) { }
242 3 0 unless (-d $dirname)
243 0 3 unless mkpath($dirname)
264 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) ? :
314 2 1 if $_[0]
315 2 1 if (defined $pseudohome)
316 1 1 unless -d $pseudohome
318 1 1 defined $pseudohome ? :
323 2 0 $tdir ? :
389 1 1 if (-f $targ{'full'}) { }
392 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'}) { }
425 0 1 unless rename $$target_ref{'hidden'}, $$target_ref{'full'}
427 1 0 if ($$target_ref{'test'})
438 1 0 if ($$target_ref{'test'})