Condition Coverage

blib/lib/Mail/Message.pm
Criterion Covered Total %
condition 34 94 36.1


and 3 conditions

line !l l&&!r l&&r condition
156 0 0 0 ref $_[0] and $_[0]->isa("Mail::Transport::Send")
160 0 0 0 not $args{'via'} and defined $default_mailer
188 0 0 204 builtin::blessed($head) and $head->isa("Mail::Message::Head")
277 0 0 87 builtin::blessed($rawbody) and $rawbody->isa("Mail::Message::Body")
287 87 0 0 defined $oldbody and $body == $oldbody
365 0 22 0 $head and $head->isModified
371 0 22 0 $body and $body->isModified
562 58 0 16 substr($type, 0, 10) eq "multipart/" and not $bodytype->isMultipart
570 1 0 1 $enc =~ /^(?:none|7bit|8bit|binary)$/i and not $bodytype->isNested

or 2 conditions

line l !l condition
43 0 177 $args->{'modified'} || 0
44 0 177 $args->{'trusted'} || 0
64 0 177 $args->{'labels'} || []
164 0 0 delete $args{'via'} || 'sendmail'
244 12 4 $_[0]->get("subject") // ""
316 1 0 (defined $head ? $head->get("Content-Type", 0) : undef) // ""
324 18 10 shift() || 'ACTIVE'
418 0 0 $head->get('status') || ''
421 0 0 $head->get('x-status') || ''
510 0 0 $message->{'MM_modified'} ||= 0
537 29 45 $self->{'MM_head_type'} // "Mail::Message::Head::Complete"
548 0 0 $self->{'MM_body_type'} // "Mail::Message::Body::Lines"
568 1 1 $head->get('Content-Transfer-Encoding') || 'none'
600 73 145 (@_ ? shift() : $self->get('Message-ID')) || ''

or 3 conditions

line l !l&&r !l&&!r condition
49 0 0 47 $args->{'messageId'} || $args->{'messageID'}
81 0 0 13 $args{'shallow'} or $args{'shallow_head'}
82 0 0 13 $args{'shallow'} or $args{'shallow_body'}
125 35 0 0 shift() || select()
132 26 9 0 ref $self ne __PACKAGE__ or $body->endsOnNewline
139 0 0 0 shift() || select()
223 0 0 0 $self->head->get('Sender') || $self->head->get('From')
327 0 0 28 $what eq 'RECURSE' || ref $what
457 0 0 0 ref $message // $message
526 45 0 0 $self->readHead($parser) // "Mail::Message::Head::Complete"->new("message", $self, "field_type", $self->{'MM_field_type'})
537 0 74 0 $headtype //= $self->{'MM_head_type'} // "Mail::Message::Head::Complete"
606 73 145 0 $msgid || $self->head->createMessageId
613 0 0 0 shift() // $self->head->guessBodySize