Branch Coverage

File:blib/lib/App/FileSync/IO.pm
Coverage:65.2%

line%coveragebranch
127100TFunless eval {         do {         &App::FileSync::IO::open($fh, $mode, $path); 1 } }
18150TFdefined $text ? :
23850TFunless eval {         do {         ($fh, $path) = File::Temp::tempfile($TEMP_TEMPLATE, "DIR", $directory, "UNLINK", 0); 1 } }
24450TFif $HAS_MODES
30750TFunless ($written and $closed)
37550TFif defined $mode and $HAS_MODES
432100TFif (-l $path or -e _ and not -d _) { }
50TFelsif (-d _) { }
43350TFunless eval {         do {         &App::FileSync::IO::unlink($path); 1 } }
4350TFunless eval {         do {         &App::FileSync::IO::rmdir($path); 1 } }
492100TFif not defined $mtime or eval {         do {         &Time::HiRes::utime($mtime, $mtime, $path); 1 } }
497100TFunless not ref $error and $error =~ /unimplemented/i
50050TFunless eval {         do {         &App::FileSync::IO::utime(int $mtime, int $mtime, $path); 1 } }
55150TF$ok ? :
602100TFunless $opened
604100TFif $_ ne "."
66050TFunless ref $stat eq "ARRAY" and @{$stat;}
66350TFunless File::Copy::copy($source, $destination)
66650TFif $HAS_MODES
724100TF_ends_mid_line($path) ? :
72950TFunless $written and $closed
778100TFunless (-d $directory)
78050TFunless -d $directory