Condition Coverage

lib/Apache/Logmonster/Utility.pm
Criterion Covered Total %
condition 40 172 23.2


and 3 conditions

line !l l&&!r l&&r condition
83 0 0 0 $default and not $pass
153 4 0 0 $p{'destdir'} and -d $p{'destdir'}
159 0 0 4 $self->is_writable($file, %args) and $self->is_writable($archive, %args)
172 0 0 0 $p{'sudo'} and $< != 0
190 0 0 0 $sudo and $cp
366 1 1 0 -e $dir and not -d $dir
738 0 5 0 -e $f1 and -e $f2
781 2 0 2 -f "$f.md5" && $sum =~ /[0-9a-f]+/i
814 26 0 0 $bin =~ m[^/] and -x $bin
858 3 0 1 $etcdir and -d $etcdir
1142 0 0 17 $m and $m =~ m[^/]
1216 0 0 0 $fetchbin and -x $fetchbin
1223 0 0 0 $fetchbin and -x $fetchbin
1231 0 0 0 $fetchbin and -x $fetchbin
1245 0 0 0 -e $file and $dir
0 0 0 -e $file and $dir and -d $dir
1317 0 1 0 $self->is_writable($existing, 'fatal', 0) and $self->is_writable($newfile, 'fatal', 0)
1344 0 0 0 $uid and $gid
1353 0 0 0 -e $existing and $mode
1362 0 0 0 -e $existing and $p{'archive'}
1365 0 0 0 $uid and $gid
1478 0 0 0 $bintest and $self->find_bin($bintest, 'fatal', 0, 'debug', 0)
1508 0 0 0 -d $sub_path and chdir $sub_path
1541 0 0 0 defined $sub_path and -d "$package/$sub_path"
1590 0 0 0 $patches and $$patches[0]
1628 0 0 0 -d $portdir and chdir $portdir
1694 0 0 0 $module eq 'Provision::Unix' and $version
1730 0 0 0 $portdir and -d $portdir
0 0 0 $portdir and -d $portdir and chdir $portdir
1786 0 0 0 @$targets[0] and @$targets[0] ne ''
1831 0 0 0 defined $ARGV and $ARGV eq '-'
1834 0 0 0 @ARGV > 0 && $ARGV[0] eq '-' && -t *STDIN
1843 0 0 0 -t *STDIN && (@ARGV == 0 || $ARGV[0] eq '-')
1890 0 8 0 -e $path and not -w $path
2019 1 1 1 -e $file and not -f $file
2068 1 2 0 $file and -r $file
2116 0 2 36 $strip and $val
2 36 0 $strip and $val and $val =~ /#/
2280 0 0 0 $path_to_sudo and -x $path_to_sudo
2343 0 10 0 $is_safe and not $bin
2352 0 5 5 $bin and not -e $bin
2366 10 0 0 $tainted and not $is_safe
2479 0 0 0 $response && $response eq 'y'

or 2 conditions

line l !l condition
718 0 0 $self->chmod('file', $file, 'mode', $p{'mode'}, %args) or return
1081 6 9 $p{'bump'} || 0
1239 0 0 $p{'timeout'} || 0
1470 0 0 $p{'patch_args'} || ''
1471 0 0 $p{'source_dir'} || '/usr/local/src'

or 3 conditions

line l !l&&r !l&&!r condition
129 177 4 10 $$self{'debug'} or $p{'debug'}
213 3 0 0 $p{'file'} || $p{'file_or_dir'} || $p{'dir'}
456 0 16 0 $p{'caller'} || caller
459 2 14 0 $location || join(', ', $caller[0], $caller[2])
468 10 0 6 $debug or $fatal
781 2 1 1 not -f "$f.md5" && $sum =~ /[0-9a-f]+/i or $self->file_is_newer('f1', "$f.md5", 'f2', $f, %$args)
1047 0 0 0 @ips < 1 or $ips[0] eq ''
1767 0 0 0 $p{'archive'} || $module
2439 0 0 0 $p{'force'} or $self->is_interactive
2467 0 0 0 $response eq 'n' or $response eq 'y'
2482 0 0 0 $response eq 'n' or $response eq 'y'