Branch Coverage

lib/Rex/Commands/Sync.pm
Criterion Covered Total %
branch 0 62 0.0


line true false branch
78 0 0 if (ref $option[0]) { }
124 0 0 unless ref $excludes eq "ARRAY"
134 0 0 if ($cmp =~ m[/]u)
137 0 0 if (match_glob($cmp, $file) or match_glob($cmp, substr($file, 1)))
145 0 0 if (match_glob($cmp, basename($file)))
157 0 0 if scalar grep({&$check_exclude_file($file->{'name'}, $_);} @excluded_files) > 0
172 0 0 if (exists $options->{'files'} and exists $options->{'files'}{'mode'})
176 0 0 if (exists $options->{'files'} and exists $options->{'files'}{'owner'})
180 0 0 if (exists $options->{'files'} and exists $options->{'files'}{'group'})
185 0 0 if (exists $options->{'directories'} and exists $options->{'directories'}{'mode'})
191 0 0 if (exists $options->{'directories'} and exists $options->{'directories'}{'owner'})
197 0 0 if (exists $options->{'directories'} and exists $options->{'directories'}{'group'})
204 0 0 if ($remote_dir)
210 0 0 if ($file->{'path'} =~ /\.tpl$/u and $options->{'parse_templates'}) { }
229 0 0 if (exists $options->{'on_change'} and ref $options->{'on_change'} eq "CODE" and scalar @uploaded_files > 0)
244 0 0 if (ref $option[0]) { }
282 0 0 unless ref $excludes eq "ARRAY"
291 0 0 if grep {basename($file->{'name'}) =~ /$_/u;} @excluded_files
301 0 0 if ($remote_dir)
315 0 0 if (exists $options->{'on_change'} and ref $options->{'on_change'} eq "CODE" and scalar @diff > 0)
320 0 0 if (substr($dest, -1) eq "/")
331 0 0 unless (-d $source)
338 0 0 if $entry eq "."
339 0 0 if $entry eq ".."
340 0 0 if (is_dir("$dir/$entry"))
366 0 0 unless (is_dir($dest))
373 0 0 if $entry eq "."
374 0 0 if $entry eq ".."
375 0 0 if (is_dir("$dir/$entry"))
404 0 0 if $_->{'name'} eq $file1->{'name'}
405 0 0 if (scalar @data == 0)