Branch Coverage

lib/Git/Demo/Action/File.pm
Criterion Covered Total %
branch 0 38 0.0


line true false branch
24 0 0 if ($event->action eq 'touch') { }
0 0 elsif ($event->action eq 'append') { }
0 0 elsif ($event->action eq 'copy') { }
0 0 elsif ($event->action eq 'move') { }
44 0 0 unless (open FH, '>', $path)
59 0 0 if (scalar @args < 2)
69 0 0 if ($num_files > 1 and -f $target_abs)
73 0 0 if ($num_files > 1 and not -d $target_abs)
75 0 0 unless ($f->make_dir($target_abs))
82 0 0 if (file_name_is_absolute($path)) { }
88 0 0 if ($num_files > 1) { }
93 0 0 if (-f $source_path) { }
95 0 0 unless (copy($source_path, $target_path))
113 0 0 if (scalar @args != 2)
118 0 0 if (file_name_is_absolute($args[0])) { }
125 0 0 unless (-f $source_abs)
130 0 0 unless (rename $source_abs, $target_abs)
141 0 0 if (scalar @args != 2)
155 0 0 unless (open FH, '>>', $path)