Condition Coverage

blib/lib/Dpkg/Source/Patch.pm
Criterion Covered Total %
condition 26 117 22.2


and 2 conditions

line l !l condition
608 0 2 $opts{'force_timestamp'} and scalar @files

and 3 conditions

line !l l&&!r l&&r condition
46 0 0 0 $opts{'old'} and $opts{'new'}
0 0 0 $opts{'old'} and $opts{'new'} and $opts{'filename'}
49 0 0 0 -d $opts{'old'} and -d $opts{'new'}
0 0 0 -f $opts{'old'} and -f $opts{'new'}
83 0 0 0 $opts{'label_old'} and $opts{'label_new'}
127 0 0 0 *$self->{'empty'} and defined *$self->{'header'}
140 0 0 0 WIFEXITED($?) and $exit == 0 || $exit == 1 || $binary
248 0 0 0 $opts{'order_from'} and -e $opts{'order_from'}
281 0 0 0 $success and $old_file eq '/dev/null'
0 0 0 $success and $old_file eq '/dev/null' and $new_file ne '/dev/null'
363 2 0 0 -e $new and not -e $old
364 2 0 0 -e $old and not -e $new
428 11 0 2 $line ne '/dev/null' and $line =~ s[^[^/]*/+][$destdir/]
446 0 0 7 $line ne '/dev/null' and $line =~ s[^[^/]*/+][$destdir/]
472 2 5 0 $path{'old'} eq '/dev/null' and $path{'new'} eq '/dev/null'
486 0 5 2 $dirname =~ s[/[^/]+$][] and not -d $dirname
490 7 0 0 -e $fn and not -f _
498 0 0 0 $opts{'verbose'} and $filepatched{$fn} == 2
520 0 0 0 $olines == $nlines and $olines < 3

or 2 conditions

line l !l condition
67 0 0 $opts{'include_timestamp'} //= 0
72 0 0 $opts{'handle_binary_func'} // sub { my($self, $old, $new, %opts) = @_; my $file = $opts{'filename'}; $self->_fail_with_msg($file, g_('binary file contents changed')); }
396 21 0 $opts{'verbose'} //= 1
573 0 21 $opts{'force_timestamp'} //= 1
574 0 21 $opts{'remove_backup'} //= 1
575 0 21 $opts{'create_dirs'} //= 1
576 0 21 $opts{'options'} ||= ['-t', '-F', '0', '-N', '-p1', '-u', '-V', 'never', '-b', '-z', '.dpkg-orig']
578 0 21 $opts{'add_options'} //= []
626 0 0 $opts{'create_dirs'} //= 1
627 0 0 $opts{'options'} ||= ['--dry-run', '-s', '-t', '-F', '0', '-N', '-p1', '-u', '-V', 'never', '-b', '-z', '.dpkg-orig']
629 0 0 $opts{'add_options'} //= []

or 3 conditions

line l !l&&r !l&&!r condition
140 0 0 0 $exit == 0 || $exit == 1 || $binary
143 0 0 0 $exit == 0 || $exit == 1
150 0 0 0 $opts{'basedirname'} || basename($new)
169 0 0 0 -b _ or -c _
0 0 0 -b _ or -c _ or -S _
266 0 0 0 $patchorder{$fn} //= $i++
407 21 0 5 defined $line or not eof $self
450 2 5 0 defined $fn{'old'} or defined $fn{'new'}
518 0 5 5 $olines or $nlines
530 0 0 5 $line =~ /^ / or length $line == 0
608 0 2 0 $now //= &fs_time($files[0])
611 2 0 0 utime $now, $now, $fn or $! == 2