Condition Coverage

lib/Rex/Commands/Fs.pm
Criterion Covered Total %
condition 17 79 21.5


and 3 conditions

line !l l&&!r l&&r condition
101 3 0 11 $fs->is_symlink($to) and $fs->readlink($to) eq $from
354 5 0 0 %old_stat and $old_stat{'uid'} != $new_stat{'uid'}
360 5 0 0 %old_stat and $old_stat{'gid'} != $new_stat{'gid'}
366 5 0 0 %old_stat and $old_stat{'mode'} ne $new_stat{'mode'}
503 0 0 0 $old_present == 1 and $new_present == 1
0 0 0 $old_present == 1 and $new_present == 1 and $old_absent == 1
546 0 0 0 $fs->is_file($source) and $fs->is_dir($dest)
645 6 0 1 not defined $stat[0] and scalar @stat == 1
1126 0 0 0 exists $option->{'on_change'} and ref $option->{'on_change'} eq "CODE"
1179 0 0 0 exists $option{'on_change'} and ref $option{'on_change'} eq "CODE"

or 2 conditions

line l !l condition
291 2 3 $options->{'on_change'} //= sub { }
307 0 5 $options->{'mode'} || 755
308 0 5 $options->{'owner'} || ''
309 0 5 $options->{'group'} || ''
310 0 5 $options->{'not_recursive'} || 0
873 0 0 $dev ||= ""
1001 0 0 $option->{'ensure'} ||= "present"
1076 0 0 $option->{'options'} ||= "defaults"

or 3 conditions

line l !l&&r !l&&!r condition
154 7 0 0 $fs->is_file($file) or $fs->is_symlink($file)
222 2 0 0 $fs->is_dir($dir) || $dir =~ /[\*\[]/u
333 11 0 5 is_dir($path_so_far) or is_file($path_so_far)
482 0 0 0 $fs->is_file($old) or $fs->is_dir($old)
0 0 0 $fs->is_file($old) or $fs->is_dir($old) or $fs->is_symlink($old)
494 0 0 0 $fs->is_file($new) or $fs->is_dir($new)
0 0 0 $fs->is_file($new) or $fs->is_dir($new) or $fs->is_symlink($new)
499 0 0 0 $fs->is_file($old) or $fs->is_dir($old)
0 0 0 $fs->is_file($old) or $fs->is_dir($old) or $fs->is_symlink($old)
550 0 0 0 $fs->is_file($dest) or $fs->is_dir($dest)
0 0 0 $fs->is_file($dest) or $fs->is_dir($dest) or $fs->is_symlink($dest)