Branch Coverage

blib/lib/Metabrik/System/File.pm
Criterion Covered Total %
branch 0 102 0.0


line true false branch
68 0 0 unless $self->brik_help_run_undef_arg("mkdir", $path)
72 0 0 if ($error)
75 0 0 if ($file eq '') { }
95 0 0 unless $self->brik_help_run_undef_arg("chmod", $file)
96 0 0 unless my $ref = $self->brik_help_run_invalid_arg("chmod", $file, "SCALAR", "ARRAY")
98 0 0 unless $self->brik_help_run_undef_arg("chmod", $perms)
101 0 0 if ($ref eq 'ARRAY') { }
108 0 0 unless ($r)
122 0 0 unless $self->brik_help_run_undef_arg("copy", $source)
123 0 0 unless $self->brik_help_run_undef_arg("copy", $destination)
126 0 0 unless ($r)
137 0 0 unless $self->brik_help_run_undef_arg("sudo_copy", $source)
138 0 0 unless $self->brik_help_run_undef_arg("sudo_copy", $destination)
147 0 0 unless $self->brik_help_run_undef_arg("move", $source)
148 0 0 unless $self->brik_help_run_undef_arg("move", $destination)
151 0 0 unless ($r)
162 0 0 unless $self->brik_help_run_undef_arg("remove", $file)
163 0 0 unless my $ref = $self->brik_help_run_invalid_arg("remove", $file, "ARRAY", "SCALAR")
166 0 0 if ($ref eq 'ARRAY') { }
168 0 0 unless unlink $this
172 0 0 unless unlink $file
182 0 0 unless $self->brik_help_run_undef_arg("rename", $source)
183 0 0 unless $self->brik_help_run_undef_arg("rename", $destination)
186 0 0 unless ($r)
201 0 0 unless $self->brik_help_run_undef_arg("create", $file)
202 0 0 unless $self->brik_help_run_undef_arg("create", $size)
205 0 0 if (-f $file and not $self->overwrite)
209 0 0 if (-f $file)
210 0 0 unless $self->remove($file)
213 0 0 unless my $fw = "Metabrik::File::Write"->new_from_brik_init($self)
215 0 0 unless $fw->open($file)
216 0 0 if ($size > 0) { }
231 0 0 unless $self->brik_help_run_undef_arg("glob", $pattern)
242 0 0 unless $self->brik_help_run_undef_arg("is_relative", $path)
247 0 0 $r ? :
254 0 0 unless $self->brik_help_run_undef_arg("is_absolute", $path)
257 0 0 $self->is_relative($path) ? :
264 0 0 unless $self->brik_help_run_undef_arg("to_absolute_path", $path)
276 0 0 unless $self->brik_help_run_undef_arg("basename", $path)
293 0 0 unless $self->brik_help_run_undef_arg("basedir", $path)
313 0 0 unless $self->brik_help_run_undef_arg("link", $from)
314 0 0 unless $self->brik_help_run_file_not_found("link", $from)
315 0 0 unless $self->brik_help_run_undef_arg("link", $to)
318 0 0 unless (defined $r)
332 0 0 unless $self->brik_help_run_undef_arg("uniq", $input)
333 0 0 unless $self->brik_help_run_undef_arg("uniq", $output)
337 0 0 unless $self->execute($cmd)
349 0 0 unless $self->brik_help_run_undef_arg("count", $input)
353 0 0 unless my $r = $self->capture($cmd)
355 0 0 if (@$r != 1)
371 0 0 unless $self->brik_help_run_undef_arg("touch", $file)