Branch Coverage

blib/lib/SimpleFlow.pm
Criterion Covered Total %
branch 52 70 74.2


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))
51 0 26 unless (ref $args eq "HASH")
59 1 25 if (scalar @undef_args > 0)
73 1 24 if (scalar @bad_args > 0)
79 1 23 if (defined $args->{'log.fh'} and not &openhandle($args->{'log.fh'}))
87 4 19 if (defined $args->{'input.files'})
90 1 3 if ($ref eq 'ARRAY') { }
3 0 elsif ($ref eq '') { }
97 3 0 if defined $_
102 2 2 if (scalar @missing_files > 0)
110 0 21 if (scalar @empty_filenames > 0)
116 1 20 if defined $args->{'log.fh'}
117 6 15 if (defined $args->{'output.files'})
119 0 6 if ($ref eq 'ARRAY') { }
6 0 elsif ($ref eq '') { }
129 1 20 if (scalar @empty_filenames > 0)
133 5 15 if (scalar @output_files > 0)
148 1 19 if $args->{'dry.run'}
150 2 18 if (defined $args->{'input.files'})
158 1 19 if (not $args->{'overwrite'} and scalar @output_files > 0 and scalar @existing_files == scalar @output_files) { }
164 0 1 if defined $args->{'log.fh'}
170 1 18 if ($r{'dry.run'})
191 0 18 if (not defined $status or $status == -1) { }
0 18 elsif ($^O eq 'MSWin32') { }
208 1 17 if (scalar @missing_output_files > 0)
212 0 1 if defined $args->{'log.fh'}
213 0 1 if defined $args->{'log.fh'}
215 0 1 if defined $args->{'log.fh'}
217 0 1 if defined $args->{'log.fh'}
219 0 1 if defined $args->{'log.fh'}
220 0 1 if ($args->{'die'}) { }
230 1 17 if (scalar @files_with_zero_size > 0)
234 1 17 if defined $args->{'log.fh'}
235 1 17 if ($r{'die'} and $r{'exit'} != 0)