Branch Coverage

blib/lib/Genome/Sys.pm
Criterion Covered Total %
branch 18 118 15.2


line true false branch
15 0 3 unless ($version)
24 0 0 unless ($version)
34 0 4 -l $_ ? :
38 4 2 -e $path ? :
59 0 1 if (ref $self) { }
60 0 0 if $$self{'base_temp_directory'}
65 0 1 if $base_temp_directory
69 1 0 unless ($template)
82 0 1 if ($ENV{'LSB_JOBID'})
84 0 0 if -d $lsf_possible_tempdir
90 0 1 if ($ENV{'GENOME_SYS_NO_CLEANUP'})
97 0 1 if (ref $self) { }
105 0 0 unless ($dir)
116 0 1 unless ($name)
121 0 1 if (-e $path)
125 0 1 if (not $path or $path eq '/')
136 0 0 unless ($fh)
139 0 0 if wantarray
153 0 2 unless (defined $directory)
159 1 1 if -d $directory
165 0 1 if ($errors and @$errors)
174 0 1 unless (-d $directory)
184 0 0 unless (defined $target)
188 0 0 unless (defined $link)
192 0 0 unless (-e $target)
196 0 0 if (-e $link)
200 0 0 if (-l $link)
204 0 0 unless (symlink $target, $link)
213 0 0 if ($file eq '-')
214 0 0 if ($rw eq 'r') { }
0 0 elsif ($rw eq 'w') { }
225 0 0 if $fh
232 0 0 unless (defined $file)
236 0 0 if ($file eq '-')
240 0 0 unless (-e $file)
244 0 0 unless (-f $file)
248 0 0 unless (-r $file)
258 0 0 unless $self->validate_file_for_reading($file)
280 0 0 unless defined $skip_if_output_is_present
281 0 0 if (%params)
286 0 0 if ($output_files and @$output_files)
288 0 0 if ($skip_if_output_is_present and @$output_files == @found_outputs)
299 0 0 if ($input_files and @$input_files)
301 0 0 if (@missing_inputs)
302 0 0 -e $_ ? :
307 0 0 if ($input_directories and @$input_directories)
309 0 0 if (@missing_inputs)
317 0 0 if ($exit_code == -1) { }
0 0 elsif ($exit_code & 127) { }
0 0 elsif ($exit_code >> 8 != 0) { }
321 0 0 $exit_code & 128 ? :
327 0 0 if ($allow_failed_exit_code) { }
335 0 0 if ($output_files and @$output_files)
338 0 0 if (@missing_output_files)
339 0 0 if ($allow_zero_size_output_files and @$output_files == @missing_output_files)
345 0 0 unless ($fh)
355 0 0 if ($output_directories and @$output_directories)
360 0 0 if (@missing_output_files or @missing_output_directories)
361 0 0 unless unlink $_