Condition Coverage

blib/lib/Mozilla/Backup.pm
Criterion Covered Total %
condition 10 40 25.0


and 3 conditions

line !l l&&!r l&&r condition
315 0 0 0 ref $log and $log->isa('Log::Dispatch')

or 2 conditions

line l !l condition
185 4 0 $args{'options'} || {}
295 4 0 shift() || 'Mozilla::Backup'
326 2 0 $value ||= ''
580 1 0 $args{'destination'} || '.'
704 0 0 'IO::File'->new("<$filename") || (return failure($self->_log("Unable to open file: $filename")))
772 0 0 'IO::File'->new(">$filename") || (return failure($self->_log("Unable to write to $filename")))
835 0 1 $args{'is_default'} || 0
836 0 1 $args{'munge_prefs'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
134 0 0 0 $ENV{'APPDATA'} || _catdir($ENV{'USERPROFILE'}, 'Application Data') || _catdir($ENV{'WINDIR'}, 'Profiles', 'Application Data') || _catdir($ENV{'WINDIR'}, 'Application Data')
303 0 1 0 not ref $value or ref $value eq 'ARRAY'
327 0 2 0 $value eq '' or _catdir($value)
355 0 0 0 not ref $value or ref $value eq 'Regexp'
455 13 0 0 $$self{'profiles'}{$type} || croak($self->_log("invalid profile type: $type"))
581 1 0 0 $args{'archive_name'} || $self->_archive_name('type', $type, 'name', $name)
694 0 0 0 $args{'prefs_file'} || _catfile($profd, 'prefs.js')