Condition Coverage

File:Dpkg/Source/Patch.pm
Coverage:22.2%

line%coveragecondition
460
ABCdec
0XX0
10X0
1100
1111
$opts{'old'} and $opts{'new'} and $opts{'filename'}
490
ABdec
0X0
100
111
-f $opts{'old'} and -f $opts{'new'}
0
ABdec
0X0
100
111
-d $opts{'old'} and -d $opts{'new'}
770
Adec
00
11
$opts{'include_timestamp'} //= 0
820
Adec
00
11
$opts{'handle_binary_func'} // sub {         my($self, $old, $new, %opts) = @_; my $file = $opts{'filename'}; $self->_fail_with_msg($file, g_("binary file contents changed")); }
930
ABdec
0X0
100
111
$opts{'label_old'} and $opts{'label_new'}
1370
ABdec
0X0
100
111
*$self->{'empty'} and defined *$self->{'header'}
1500
ABCdec
0XX0
1000
1011
11X1
WIFEXITED($?) and $exit == 0 || $exit == 1 || $binary
1530
ABdec
000
011
1X1
$exit == 0 || $exit == 1
1600
ABdec
000
011
1X1
$opts{'basedirname'} || basename($new)
1790
ABCdec
0000
0011
01X1
1XX1
-b _ or -c _ or -S _
2580
ABdec
0X0
100
111
$opts{'order_from'} and -e $opts{'order_from'}
2760
ABdec
000
011
1X1
$patchorder{$fn} //= $i++
2910
ABCdec
0XX0
10X0
1100
1111
$success and $old_file eq "/dev/null" and $new_file ne "/dev/null"
37333
ABdec
0X0
100
111
-e $new and not -e $old
37433
ABdec
0X0
100
111
-e $old and not -e $new
40650
Adec
00
11
$opts{'verbose'} //= 1
41767
ABdec
000
011
1X1
defined $line or not eof $self
43867
ABdec
0X0
100
111
$line ne "/dev/null" and $line =~ s[^[^/]*/+][$destdir/]
45633
ABdec
0X0
100
111
$line ne "/dev/null" and $line =~ s[^[^/]*/+][$destdir/]
46067
ABdec
000
011
1X1
defined $fn{'old'} or defined $fn{'new'}
48267
ABdec
0X0
100
111
$path{'old'} eq "/dev/null" and $path{'new'} eq "/dev/null"
49667
ABdec
0X0
100
111
$dirname =~ s[/[^/]+$][] and not -d $dirname
50033
ABdec
0X0
100
111
-e $fn and not -f _
5080
ABdec
0X0
100
111
$opts{'verbose'} and $filepatched{$fn} == 2
52867
ABdec
000
011
1X1
$olines or $nlines
5300
ABdec
0X0
100
111
$olines == $nlines and $olines < 3
54033
ABdec
000
011
1X1
$line =~ /^ / or length $line == 0
58350
Adec
00
11
$opts{'force_timestamp'} //= 1
58450
Adec
00
11
$opts{'remove_backup'} //= 1
58550
Adec
00
11
$opts{'create_dirs'} //= 1
58650
Adec
00
11
$opts{'options'} ||= ["-t", "-F", 0, "-N", "-p1", "-u", "-V", "never", "-b", "-z", ".dpkg-orig"]
58850
Adec
00
11
$opts{'add_options'} //= []
61850
Adec
00
11
$opts{'force_timestamp'} and scalar @files
33
ABdec
000
011
1X1
$now //= &fs_time($files[0])
62133
ABdec
000
011
1X1
utime $now, $now, $fn or $! == 2
6360
Adec
00
11
$opts{'create_dirs'} //= 1
6370
Adec
00
11
$opts{'options'} ||= ["--dry-run", "-s", "-t", "-F", 0, "-N", "-p1", "-u", "-V", "never", "-b", "-z", ".dpkg-orig"]
6390
Adec
00
11
$opts{'add_options'} //= []