Branch Coverage

blib/lib/Shipwright/Backend/FS.pm
Criterion Covered Total %
branch 15 54 27.7


line true false branch
44 6 0 if $abs_path
63 0 2 unless rcopy($dir, $self->repository)
75 0 0 unless $args{$_}
80 0 6 if ($type eq 'checkout' or $type eq 'export') { }
0 6 elsif ($type eq 'import') { }
2 4 elsif ($type eq 'delete') { }
0 4 elsif ($type eq 'move') { }
4 0 elsif ($type eq 'info') { }
0 0 elsif ($type eq 'list') { }
0 0 elsif ($type eq 'cat') { }
86 0 0 if ($args{'_extra_tests'}) { }
93 0 0 if (my $script_dir = $args{'build_script'}) { }
100 0 0 if ($self->has_branch_support) { }
102 0 0 unless (-e catdir($self->repository, 'sources', $args{'name'}, @dirs[0 .. $#dirs - 1]))
157 0 0 unless -e $path
159 0 0 if (-d $path) { }
161 0 0 unless opendir $dh, $path
173 0 0 unless -e $path
174 0 0 unless -f $path
176 0 0 unless open my $fh, '<', $path
199 2 3 if ($yml) { }
220 0 4 if (wantarray) { }
237 2 2 if ($args{'action'} eq 'create') { }
239 2 0 if ($args{'force'} or not -e $repo)
257 0 0 unless rcopy($latest, $file)
266 0 0 unless rcopy($latest, $dir)
275 2 0 unless ref $self