Condition Coverage

blib/lib/Mail/Box.pm
Criterion Covered Total %
condition 56 106 52.8


and 3 conditions

line !l l&&!r l&&r condition
184 142 0 0 $message->can("folder") and defined $message->folder
299 51 3 34 defined $manager and not $args{'close_by_manager'}
309 68 0 20 $write and not $force
68 20 0 $write and not $force and not $self->writable
416 1682 0 0 defined $double and not $self->{'MB_keep_dups'}
427 0 0 0 $subj1 eq $subj2 and $to1 eq $to2
538 1 0 1 $window ne "ALL" and defined $startmsg
544 0 2 0 defined $bound and $bound > $last
670 30 84 1544 $self->{'MB_lazy_permitted'} and not $message->isPart
114 930 614 $self->{'MB_lazy_permitted'} and not $message->isPart and not $self->{'MB_extract'}->($self, $head)

or 2 conditions

line l !l condition
59 63 0 $self->read or return
74 0 84 $args->{'coerce_options'} || []
75 73 11 $args->{'access'} || 'r'
80 0 84 $args->{'organization'} || 'FILE'
97 0 84 $args->{'head_type'} || 'Mail::Message::Head::Complete'
98 84 0 $args->{'body_type'} || 'Mail::Message::Body::Lines'
99 0 84 $args->{'body_delayed_type'} || 'Mail::Message::Body::Delayed'
100 0 84 $args->{'head_delayed_type'} || 'Mail::Message::Head::Delayed'
101 0 84 $args->{'multipart_type'} || 'Mail::Message::Body::Multipart'
104 36 48 $args->{'extract'} || 'extractDefault'
220 4 0 $args{'select'} || 'ACTIVE'
231 0 4 $args{'delete_copied'} || 0
232 0 4 $args{'share'} || 0
291 0 90 $args{'force'} || 0
301 30 58 $args{'write'} // "MODIFIED"
420 0 0 $head1->get('subject') || ''
421 0 0 $head2->get('subject') || ''
423 0 0 $head1->get('to') || ''
424 0 0 $head2->get('to') || ''
503 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
70 84 0 0 $args->{'folder'} || $ENV{'MAIL'}
96 0 84 0 $args->{'message_type'} || $class . '::Message'
122 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'})
256 4 4 2 $flatten or $recurse
317 68 20 0 !$write || $self->write('force', $force, 'save_deleted', $args{'save_deleted'} || 0)
379 5 14 1466 $msg->isDeleted or $msg->isModified
454 0 1 0 $msgids->{$msgid} // $self->scanForMessages(undef, $msgid, "EVER", "ALL")
543 0 2 0 $self->{'MBM_last'} || $nr_messages
575 0 1 0 !defined($set) || $set
636 0 31 0 $args{'force'} or $self->writable
653 10 20 1 @destroy or $self->isModified
767 0 69 19 &in_global_destruction() or $self->{'MB_is_closed'}