Condition Coverage

blib/script/makepatch
Criterion Covered Total %
condition 29 145 20.0


and 3 conditions

line !l l&&!r l&&r condition
246 1 0 0 -f $old->{'root'} and -f $new->{'root'}
1 0 0 -f $old->{'root'} and -d $new->{'root'}
0 1 0 -d $old->{'root'} and -f $new->{'root'}
0 0 1 -d $old->{'root'} and -d $new->{'root'}
283 0 0 1 defined $opt_automanifest and not defined $opt_oldmanifest || defined $opt_newmanifest
1 0 0 -s &catfile($old->{'root'}, $opt_automanifest) and -s &catfile($new->{'root'}, $opt_automanifest)
0 1 0 defined $opt_automanifest and not defined $opt_oldmanifest || defined $opt_newmanifest and (-s &catfile($old->{'root'}, $opt_automanifest) and -s &catfile($new->{'root'}, $opt_automanifest))
329 1 0 0 defined $opt_patchlevel and $opt_patchlevel ne ''
368 0 2 0 defined $n and !defined($o) || $o gt $n
480 0 0 0 $_ and not $_ =~ m[/$]
535 0 4 0 defined $excl and $display_name =~ /$excl/mos
542 4 0 0 -d $realname and $opt_follow || !(-l $realname)
572 0 0 0 $. == 2 and /^[-=_\s]*$/
579 0 0 0 defined $exclude_pat and /$exclude_pat/mos
650 0 0 0 @files == 1 and -d &catfile($tmp, $files[0])
676 0 2 0 -s $oldfn and -B _
681 0 2 0 -s $newfn and -B _
694 0 2 0 $result and $result < 128
796 0 0 0 -s $newfn and -B _
899 0 0 0 $old ne $dot and $old ne $dotdot
0 0 0 $old ne $dot and $old ne $dotdot and basename($old) eq $old
0 0 0 $old ne $dot and $old ne $dotdot and basename($old) eq $old and $new ne $dot
0 0 0 $old ne $dot and $old ne $dotdot and basename($old) eq $old and $new ne $dot and $new ne $dotdot
0 0 0 $old ne $dot and $old ne $dotdot and basename($old) eq $old and $new ne $dot and $new ne $dotdot and basename($new) eq $new
1026 0 0 0 defined $args[2] and $args[2] &= 511
1041 0 0 0 defined $args[2] and $args[2] &= 511
1088 0 0 2 defined $args[2] and $op eq 'c' || $op eq 'C' || $op eq 'p'
1213 0 0 1 &GetOptions(@o, 'rcfile=s', \$opt_rcfile) and @ARGV == 0
1391 0 0 0 defined $exit and $exit != 0
1417 0 0 0 defined $exit and $exit != 0

or 2 conditions

line l !l condition
366 0 0 $o || '(undef)'
0 0 $n || '(undef)'

or 3 conditions

line l !l&&r !l&&!r condition
283 0 0 1 defined $opt_oldmanifest || defined $opt_newmanifest
360 2 0 1 scalar(@{$old->{'files'};}) + scalar(@{$new->{'files'};}) > 0 or defined $o
2 0 1 scalar(@{$old->{'files'};}) + scalar(@{$new->{'files'};}) > 0 or defined $o or defined $n
368 0 0 2 !defined($o) || $o gt $n
0 0 2 not defined $n or $o lt $n
542 0 0 0 $opt_follow || !(-l $realname)
638 0 0 0 $ret or $? & 127
695 0 0 0 $result == 2 || $result == 3
999 0 0 1 $removed or $created
1008 0 0 0 $dcreated or $dremoved
1088 0 2 0 $op eq 'c' || $op eq 'C' || $op eq 'p'
1240 0 0 1 not &GetOptions(@o) or $opt_help
1260 0 0 1 $opt_verbose or $opt_ident
1277 0 0 0 defined $opt_oldmanifest or defined $opt_newmanifest
1282 0 0 0 defined $opt_newmanifest or defined $opt_oldmanifest
1305 0 0 1 $opt_trace ||= $opt_debug
1306 0 0 1 $opt_verbose ||= $opt_trace