Condition Coverage

lib/Mail/Toaster/Utility.pm
Criterion Covered Total %
condition 34 154 22.0


and 3 conditions

line !l l&&!r l&&r condition
54 0 0 0 $default and not $pass
110 4 0 0 $p{'destdir'} and -d $p{'destdir'}
116 0 0 4 $self->is_writable($file, %args) and $self->is_writable($archive, %args)
129 0 0 0 $p{'sudo'} and $< != 0
147 0 0 0 $sudo and $cp
323 1 1 0 -e $dir and not -d $dir
612 0 5 0 -e $f1 and -e $f2
655 2 0 2 -f "$f.md5" && $sum =~ /[0-9a-f]+/i
688 39 0 0 $bin =~ m[^/] and -x $bin
734 10 0 1 $etcdir and -d $etcdir
1006 0 0 31 $m and $m =~ m[^/]
1084 0 0 0 $fetchbin and -x $fetchbin
1091 0 0 0 $fetchbin and -x $fetchbin
1099 0 0 0 $fetchbin and -x $fetchbin
1115 0 0 0 -e $file and $dir
0 0 0 -e $file and $dir and -d $dir
1187 0 1 0 $self->is_writable($existing, 'fatal', 0) and $self->is_writable($newfile, 'fatal', 0)
1214 0 0 0 $uid and $gid
1223 0 0 0 -e $existing and $mode
1232 0 0 0 -e $existing and $p{'archive'}
1235 0 0 0 $uid and $gid
1344 0 0 0 $bintest and $self->find_bin($bintest, 'fatal', 0, 'verbose', 0)
1375 0 0 0 -d $sub_path and chdir $sub_path
1408 0 0 0 defined $sub_path and -d "$package/$sub_path"
1462 0 0 0 $patches and $patches->[0]
1497 0 0 0 -d $portdir and chdir $portdir
1552 0 0 0 $module eq 'Provision::Unix' and $version
1643 0 0 0 @$targets[0] and @$targets[0] ne ''
1688 0 0 0 defined $ARGV and $ARGV eq '-'
1691 0 0 0 @ARGV > 0 && $ARGV[0] eq '-' && -t *STDIN
1700 0 0 0 -t *STDIN && (@ARGV == 0 || $ARGV[0] eq '-')
1747 1 8 0 -e $path and not -w $path
1854 1 1 1 -e $file and not -f $file
1903 1 7 0 $file and -r $file
1951 0 343 1550 $strip and $val
343 647 903 $strip and $val and $val =~ /#/
2115 0 0 0 $path_to_sudo and -x $path_to_sudo
2178 0 13 0 $is_safe and not $bin
2187 0 8 5 $bin and not -e $bin
2201 13 0 0 $tainted and not $is_safe
2314 0 0 0 $response && $response eq 'y'

or 2 conditions

line l !l condition
593 0 0 $self->chmod('file', $file, 'mode', $p{'mode'}, %args) or return
945 1 4 $p{'bump'} || 0
1107 0 0 $p{'timeout'} || 0
1340 0 0 $p{'patch_args'} || ''
1341 0 0 $p{'source_dir'} || '/usr/local/src'

or 3 conditions

line l !l&&r !l&&!r condition
171 3 0 0 $p{'file'} || $p{'file_or_dir'} || $p{'dir'}
655 2 1 1 not -f "$f.md5" && $sum =~ /[0-9a-f]+/i or $self->file_is_newer('f1', "$f.md5", 'f2', $f, %$args)
922 0 0 0 @ips < 1 or $ips[0] eq ''
1626 0 0 0 $p{'archive'} || $module
2274 0 0 0 $p{'force'} or $self->is_interactive
2302 0 0 0 $response eq 'n' or $response eq 'y'
2317 0 0 0 $response eq 'n' or $response eq 'y'