Branch Coverage

blib/lib/Footprintless/Util.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
40 0 11 if defined $options{'timeout'}
41 0 11 if defined $options{'cookie_jar'}
49 14 0 if ($paths and ref $paths eq 'ARRAY' and scalar @$paths)
56 0 14 $options{'rebase'} ? :
58 17 1 $_ =~ m[/\s*$] ? :
71 14 0 @dir_paths ? :
73 0 14 if ($@)
100 0 0 if (ref $dollar_at and $dollar_at->isa('Footprintless::CommandRunner::ExecutionException')) { }
114 5 0 $options{'to'} ? :
116 0 5 if ($options{'type'}) { }
1 4 elsif ($archive =~ /\.war|\.jar|\.ear|\.twbx$/) { }
132 30 19 if (ref $entities eq 'HASH')
139 5 44 if ($entities->get_entity('footprintless.factory')) { }
163 2 3 unless ($extract_impl)
169 2 3 unless ($extract_impl)
175 2 3 unless ($extract_impl)
187 1 0 if ($path =~ /^$rebase->{'from'}(.*)$/) { }
203 92 0 $file ? :
208 0 23 $options{'append'} ? :
209 0 23 unless open my $handle, $write_mode, $file
218 0 7 unless (chmod 0700, $temp)
230 7 1 $options{'suffix'} ? :
232 0 8 unless (chmod 0600, $temp)