Condition Coverage

blib/lib/Mail/Box.pm
Criterion Covered Total %
condition 58 106 54.7


and 3 conditions

line !l l&&!r l&&r condition
201 142 0 0 $message->can("folder") and defined $message->folder
324 51 3 34 defined $manager and not $args{'close_by_manager'}
335 66 0 22 $write and not $force
66 20 2 $write and not $force and not $self->writable
451 1682 0 0 defined $double and not $self->{'MB_keep_dups'}
462 0 0 0 $subj1 eq $subj2 and $to1 eq $to2
581 1 0 1 $window ne "ALL" and defined $startmsg
587 0 2 0 defined $bound and $bound > $last
734 30 84 1542 $self->{'MB_lazy_permitted'} and not $message->isPart
114 930 612 $self->{'MB_lazy_permitted'} and not $message->isPart and not $self->{'MB_extract'}->($self, $head)

or 2 conditions

line l !l condition
60 63 0 $self->read or return
79 0 84 $args->{'coerce_options'} || []
80 73 11 $args->{'access'} || 'r'
89 0 84 $args->{'organization'} || 'FILE'
108 84 0 $args->{'body_type'} || 'Mail::Message::Body::Lines'
110 0 84 $args->{'body_delayed_type'} || 'Mail::Message::Body::Delayed'
112 0 84 $args->{'head_delayed_type'} || 'Mail::Message::Head::Delayed'
114 0 84 $args->{'multipart_type'} || 'Mail::Message::Body::Multipart'
118 0 84 $args->{'head_type'} || 'Mail::Message::Head::Complete'
120 36 48 $args->{'extract'} || 'extractDefault'
239 4 0 $args{'select'} || 'ACTIVE'
250 0 4 $args{'delete_copied'} || 0
251 0 4 $args{'share'} || 0
316 0 90 $args{'force'} || 0
327 28 60 $args{'write'} or "MODIFIED"
455 0 0 $head1->get('subject') || ''
456 0 0 $head2->get('subject') || ''
458 0 0 $head1->get('to') || ''
459 0 0 $head2->get('to') || ''
545 0 0 $self->findFirstLabeled('current', 1) || $self->findFirstLabeled('seen', 0) || $self->message(-1) || (return undef)

or 3 conditions

line l !l&&r !l&&!r condition
71 84 0 0 $args->{'folder'} || $ENV{'MAIL'}
91 26 0 58 !$self->writable || $args->{'keep_dups'}
106 0 84 0 $args->{'message_type'} || $class . '::Message'
143 0 84 0 $args->{'locker'} || 'Mail::Box::Locker'->new('folder', $self, 'method', $args->{'lock_type'}, 'timeout', $args->{'lock_timeout'}, 'expires', $args->{'lock_wait'}, 'file', $args->{'lockfile'} || $args->{'lock_file'}, $self->logSettings)
275 4 4 2 $flatten or $recurse
346 66 20 0 !$write || $self->write('force', $force, 'save_deleted', $args{'save_deleted'} || 0)
413 7 14 1492 $_->isDeleted or $_->isModified
586 0 2 0 $self->{'MBM_last'} || $nr_messages
615 0 1 0 not defined $set or $set
691 0 31 0 $args{'force'} or $self->writable
710 10 20 1 @destroy or $self->isModified
841 0 68 20 &in_global_destruction() or $self->{'MB_is_closed'}