Branch Coverage

blib/lib/SimpleFlow.pm
Criterion Covered Total %
branch 36 64 56.2


line true false branch
27 0 1 unless (&openhandle($fh))
39 0 8 unless (ref $args eq "HASH")
47 0 8 if (scalar @undef_args > 0)
61 0 8 if (scalar @bad_args > 0)
67 0 8 if (defined $args->{'log.fh'} and not &openhandle($args->{'log.fh'}))
75 1 7 if (defined $args->{'input.files'})
78 0 1 if ($ref eq 'ARRAY') { }
1 0 elsif ($ref eq '') { }
85 1 0 if defined $_
90 1 0 if (scalar @missing_files > 0)
98 0 7 if (scalar @empty_filenames > 0)
104 1 6 if defined $args->{'log.fh'}
105 4 3 if (defined $args->{'output.files'})
107 0 4 if ($ref eq 'ARRAY') { }
4 0 elsif ($ref eq '') { }
117 1 6 if (scalar @empty_filenames > 0)
121 3 3 if (scalar @output_files > 0)
136 1 5 if $args->{'dry.run'}
138 0 6 if (defined $args->{'input.files'})
146 1 5 if (not $args->{'overwrite'} and scalar @output_files > 0 and scalar @existing_files == scalar @output_files) { }
152 0 1 if defined $args->{'log.fh'}
159 1 4 if ($r{'dry.run'})
182 0 4 if (scalar @missing_output_files > 0)
186 0 0 if defined $args->{'log.fh'}
187 0 0 if defined $args->{'log.fh'}
189 0 0 if defined $args->{'log.fh'}
191 0 0 if defined $args->{'log.fh'}
193 0 0 if defined $args->{'log.fh'}
194 0 0 if ($args->{'die'}) { }
204 0 4 if (scalar @files_with_zero_size > 0)
208 1 3 if defined $args->{'log.fh'}
209 1 3 if ($r{'die'} and $r{'exit'} != 0)