Condition Coverage

blib/lib/cPanel/SyncUtil.pm
Criterion Covered Total %
condition 21 68 30.8


and 3 conditions

line !l l&&!r l&&r condition
98 0 5 0 $dir and -d $dir
146 0 0 0 defined $dir and not $dir =~ /\.bak$/
0 0 0 defined $dir and not $dir =~ /\.bak$/ and not $dir =~ /^\./
0 0 0 defined $dir and not $dir =~ /\.bak$/ and not $dir =~ /^\./ and -d $dir
0 0 0 defined $dir and not $dir =~ /\.bak$/ and not $dir =~ /^\./ and -d $dir and not -l $dir
207 10 0 8 $file =~ /\.bz2$/ and not -e $file . '.bz2.bz2'
276 0 0 8 -e $file and -e $tfile
289 17 0 0 -z $file and $$args_hr{'verbose'}
295 17 0 0 exists $oldmd5s{$file} and $md5sum ne $oldmd5s{$file}
338 0 2 0 $dir and -d $dir
391 8 0 0 -z $file and $$args_hr{'verbose'}
397 8 0 0 exists $oldmd5s{$file} and $md5sum ne $oldmd5s{$file}
8 0 0 -e $file . '.bz2' and $mtime > (stat _)[9]
429 0 1 0 $dir and -d $dir
479 0 1 0 $cpanelsync_file and -e $cpanelsync_file

or 2 conditions

line l !l condition
48 36 0 (stat $file)[2] || 0
56 0 0 (stat $file)[2] || 0
279 0 0 $$args_hr{'get_mode_string'}($file) || 0
381 5 0 $$args_hr{'get_mode_string'}($file) || 0

or 3 conditions

line l !l&&r !l&&!r condition
104 1 1 26 exists $ignore_name{$File::Find::name} or exists $ignore_name{$filename}
265 0 0 34 $file =~ m[/\.cpanelsync$] or $file =~ m[/\.cpanelsync.lock$]
367 0 0 10 $file eq './.cpanelsync' or $file eq './.cpanelsync.lock'
435 1 0 0 not -e $cpanelsync or -z _
1 0 0 not -e $cpanelsync or -z _ or not -e $cpanelsync_lock