Branch Coverage

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


line true false branch
41 0 11 if defined $options{'timeout'}
42 0 11 if defined $options{'cookie_jar'}
50 14 0 if ($paths and ref $paths eq 'ARRAY' and scalar @$paths)
57 0 14 $options{'rebase'} ? :
59 17 1 $_ =~ m[/\s*$] ? :
72 14 0 @dir_paths ? :
74 0 14 if ($@)
101 0 0 if (ref $dollar_at and $dollar_at->isa('Footprintless::CommandRunner::ExecutionException')) { }
115 5 0 $options{'to'} ? :
117 0 5 if ($options{'type'}) { }
1 4 elsif ($archive =~ /\.war|\.jar|\.ear|\.twbx$/) { }
133 30 19 if (ref $entities eq 'HASH')
140 5 44 if ($entities->get_entity('footprintless.factory')) { }
164 2 3 unless ($extract_impl)
170 2 3 unless ($extract_impl)
176 2 3 unless ($extract_impl)
188 1 0 if ($path =~ /^$rebase->{'from'}(.*)$/) { }
204 92 0 $file ? :
209 0 23 $options{'append'} ? :
210 0 23 unless open my $handle, $write_mode, $file
219 0 7 unless (chmod 0700, $temp)
231 7 1 $options{'suffix'} ? :
233 0 8 unless (chmod 0600, $temp)