Branch Coverage

blib/lib/SimpleFlow.pm
Criterion Covered Total %
branch 54 76 71.0


line true false branch
22 0 0 if $^O eq "MSWin32" and not $ENV{'WT_SESSION'} and not $ENV{'ConEmuANSI'} and not $ENV{'ANSICON'}
39 0 1 unless (&openhandle($fh))
54 26 0 if (@_ == 1 and ref $_[0] eq 'HASH') { }
0 0 elsif (@_ % 2 == 0) { }
66 1 25 if (scalar @undef_args > 0)
80 1 24 if (scalar @bad_args > 0)
86 1 23 if (defined $args->{'log.fh'} and not &openhandle($args->{'log.fh'}))
94 4 19 if (defined $args->{'input.files'})
97 1 3 if ($ref eq 'ARRAY') { }
3 0 elsif ($ref eq '') { }
100 2 0 if defined $_
104 3 0 if defined $_
109 2 2 if (scalar @missing_files > 0)
117 0 21 if (scalar @empty_filenames > 0)
123 1 20 if defined $args->{'log.fh'}
124 6 15 if (defined $args->{'output.files'})
126 0 6 if ($ref eq 'ARRAY') { }
6 0 elsif ($ref eq '') { }
135 6 0 if defined $_
136 1 20 if (scalar @empty_filenames > 0)
140 5 15 if (scalar @output_files > 0)
155 1 19 if $args->{'dry.run'}
157 2 18 if (defined $args->{'input.files'})
165 1 19 if (not $args->{'overwrite'} and scalar @output_files > 0 and scalar @existing_files == scalar @output_files) { }
171 0 1 if defined $args->{'log.fh'}
177 1 18 if ($r{'dry.run'})
198 0 18 if (not defined $status or $status == -1) { }
0 18 elsif ($^O eq 'MSWin32') { }
215 1 17 if (scalar @missing_output_files > 0)
219 0 1 if defined $args->{'log.fh'}
220 0 1 if defined $args->{'log.fh'}
222 0 1 if defined $args->{'log.fh'}
224 0 1 if defined $args->{'log.fh'}
226 0 1 if defined $args->{'log.fh'}
227 0 1 if ($r{'die'}) { }
237 1 17 if (scalar @files_with_zero_size > 0)
241 1 17 if defined $args->{'log.fh'}
242 1 17 if ($r{'die'} and $r{'exit'} != 0)