Condition Coverage

blib/lib/Rex/Commands/PerlSync.pm
Criterion Covered Total %
condition 16 40 40.0


and 3 conditions

line !l l&&!r l&&r condition
100 6 0 0 exists $options->{'files'} and exists $options->{'files'}{'mode'}
104 6 0 0 exists $options->{'files'} and exists $options->{'files'}{'owner'}
108 6 0 0 exists $options->{'files'} and exists $options->{'files'}{'group'}
113 6 0 0 exists $options->{'directories'} and exists $options->{'directories'}{'mode'}
121 6 0 0 exists $options->{'directories'} and exists $options->{'directories'}{'owner'}
129 6 0 0 exists $options->{'directories'} and exists $options->{'directories'}{'group'}
145 6 0 0 $file->{'path'} =~ /\.tpl$/u and $options->{'parse_templates'}
164 2 0 0 exists $options->{'on_change'} and ref $options->{'on_change'} eq "CODE"
2 0 0 exists $options->{'on_change'} and ref $options->{'on_change'} eq "CODE" and scalar @uploaded_files > 0
257 2 0 0 exists $options->{'on_change'} and ref $options->{'on_change'} eq "CODE"
2 0 0 exists $options->{'on_change'} and ref $options->{'on_change'} eq "CODE" and scalar @diff > 0

or 2 conditions

line l !l condition
50 1 1 $options->{'exclude'} ||= []
196 1 1 $options->{'exclude'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
359 12 0 0 not $checksums{$file->{'name'}} or $checksums{$file->{'name'}} ne $file->{'md5'}