Branch Coverage

blib/lib/RPM/Make/DWIW.pm
Criterion Covered Total %
branch 30 62 48.3


line true false branch
112 0 13 unless mkdir $dir
125 0 0 unless $TOP
143 0 3 defined $$dep{'min_ver'} ? :
155 6 2 if $$x{$section}
165 0 24 unless defined $$file{$k}
168 0 6 if $$file{'config_p'}
183 0 4 unless $mode =~ /^\d{4}$/
184 0 4 unless -e $src
191 5 10 unless (-e $dir)
195 0 4 if system '/bin/cp', $src, $dest
205 0 4 unless $$file{'dest'} =~ m[^/]
217 0 2 if system "mkdir -p -m $$dir{'mode'} $TOP/root$$dir{'dest'}"
229 2 0 if ($rc)
243 0 0 unless my $have_files = join(' ', sort(map({/\S+\s+(\S+)/;} @res)))
245 0 0 if ($want_files ne $have_files)
253 0 0 unless @res
254 0 0 if @res > 1
262 0 0 unless $rpm_path =~ m[([^/]+)$]
264 0 0 if system "cp $rpm_path ."
269 0 2 unless open F, ">$fn"
278 6 3 if $$_{'type'} eq 'file'
283 2 7 if $$_{'type'} eq 'dir'
298 0 67 unless ($$val{$key})
303 0 67 if ($r0 ne $r1)
308 0 88 if ($$val{$key}[1] and not $$x{$key})
319 10 0 unless my $err = validate_hashref($val, $x)
344 3 6 if ($$item{'defaults'}) { }
346 3 9 if $k eq 'defaults'
352 19 5 unless defined $$item{$k}
360 0 2 unless exists $$x{'cleanup'}
391 0 0 if $$spec{'cleanup'}