Branch Coverage

lib/App/MtAws/Command/Sync.pm
Criterion Covered Total %
branch 55 58 94.8


line true false branch
51 7 3 $options->{'detect'} =~ /(^|[-_])mtime([-_]|$)/ ? :
63 1 19 if ($options->{'detect'} eq 'always-positive') { }
10 9 elsif ($journal_file->{'size'} != &file_size($absfilename)) { }
1 8 elsif ($options->{'detect'} eq 'size-only') { }
2 6 elsif ($options->{'detect'} eq 'mtime') { }
1 5 elsif ($options->{'detect'} eq 'treehash') { }
2 3 elsif ($options->{'detect'} eq 'mtime-and-treehash') { }
2 1 elsif ($options->{'detect'} eq 'mtime-or-treehash') { }
70 1 1 is_mtime_differs($options, $journal_file, $absfilename) ? :
74 1 1 is_mtime_differs($options, $journal_file, $absfilename) ? :
76 1 1 is_mtime_differs($options, $journal_file, $absfilename) ? :
92 3 18 if ($should_upload == 2) { }
8 10 elsif ($should_upload == 1) { }
9 1 elsif ($should_upload == 0) { }
117 9 2 if (my $rec = shift @{$$j{'listing'}{'missing'};}) { }
130 7 2 if (my $rec = shift @{$$j{'listing'}{'new'};}) { }
154 21 22 $options->{'new'} ? :
21 22 $options->{'replace-modified'} ? :
21 22 $options->{'delete-removed'} ? :
171 9 10 if ($options->{'new'})
173 4 5 if ($options->{'dry-run'}) { }
180 9 10 if ($options->{'replace-modified'})
181 0 9 unless $options->{'detect'}
183 4 5 if ($options->{'dry-run'}) { }
189 9 10 if ($options->{'delete-removed'})
191 4 5 if ($options->{'dry-run'}) { }
198 10 9 if (scalar @joblist)
200 0 10 unless @joblist >= 1
204 0 10 unless $R