Branch Coverage

blib/lib/Mozilla/Backup/Plugin/Zip.pm
Criterion Covered Total %
branch 13 36 36.1


line true false branch
157 8 0 if $args{'options'}
158 8 0 if (@opts) { }
184 1 0 unless $file =~ /\.zip$/i
205 0 1 unless ($$self{'status'} eq 'closed')
215 1 0 if ($$self{'zip'} = 'Archive::Zip'->new) { }
239 0 1 unless ($$self{'status'} eq 'closed')
249 1 0 if ($$self{'zip'} = 'Archive::Zip'->new($path)) { }
271 0 1 unless ($$self{'status'} ne 'closed')
292 0 0 unless ($$self{'status'} eq 'open for backup')
319 0 0 unless ($$self{'status'} eq 'open for restore')
328 0 0 unless (-d $dest)
333 0 0 if (-e $path)
340 0 0 unless (-e $path)
357 0 1 unless ($$self{'status'} eq 'open for backup')
364 1 0 if ($$self{'zip'}->writeToFileNamed($path) == 0) { }
384 0 1 unless ($$self{'status'} eq 'open for restore')
417 0 4 unless $args{'message'} =~ /\n$/
418 4 0 if $$self{'log'}