Branch Coverage

blib/lib/Dpkg/Source/Quilt.pm
Criterion Covered Total %
branch 10 86 11.6


line true false branch
54 0 0 unless (-d $db_dir)
55 0 0 unless mkdir $db_dir
58 0 0 unless (-e $file)
59 0 0 unless open my $version_fh, '>', $file
67 0 0 unless (-e $file)
68 0 0 unless open my $qpatch_fh, '>', $file
73 0 0 if (not -e $file)
74 0 0 unless open my $qseries_fh, '>', $file
117 0 0 if $count
124 0 0 if &any(sub { $_ eq $patch_name; } , @{$$self{'series'};})
143 0 0 if &none(sub { $_ eq $patch_name; } , @{$$self{'series'};})
154 0 0 if -z $series
161 0 0 if $count_series > $count_applied
171 0 0 unless defined $patch
176 0 0 if $opts{'verbose'}
185 0 0 if ($@)
204 0 0 unless defined $patch
206 0 0 if $opts{'verbose'}
208 0 0 if (-d $backup_dir and not $opts{'reverse_apply'}) { }
231 0 0 if (-f $pc_ver)
232 0 0 unless open my $ver_fh, '<', $pc_ver
244 0 0 if (-e $patch_dir and not -d _)
248 0 0 if (-e $series and not -f _)
260 0 1 if -e $vendor_series
289 0 0 unless open my $file_fh, '<', $file
300 0 0 if -f $file
304 0 0 unless open my $file_fh, '>', $file
313 0 0 unless open my $file_fh, '>', $file
320 1 1 unless defined $file and -f $file
323 0 1 unless open my $series_fh, '<', $file
331 5 4 unless $line
332 2 2 if ($line =~ /^(\S+)\s+(.*)$/)
334 0 2 if ($2 ne '-p1')
338 0 0 if $opts{'warn_options'}
341 0 4 if ($line =~ m[(^|/)\.\./])
353 0 0 unless open my $series_fh, '>', $series
363 0 0 unless -d $patch_dir
364 0 0 if $opts{'verbose'}
368 0 0 if -d $_
371 0 0 if (-s $_) { }
374 0 0 unless (link $_, $target)
375 0 0 unless copy($_, $target)
377 0 0 unless chmod_if_needed((stat _)[2], $target)