Condition Coverage

lib/MIME/Lite.pm
Criterion Covered Total %
condition 38 107 35.5


and 3 conditions

line !l l&&!r l&&r condition
1102 10 0 10 $is_top && !exists $params{'Datestamp'}
1103 10 0 10 $ds_wanted || $ds_defaulted and not exists $params{'Date'}
1213 27 0 0 is_mime_field($tag) and not $MIME::Lite::QUIET
1219 26 0 1 ref $value && ref $value eq 'ARRAY'
1550 1 19 17 not $is_multipart and $enc eq 'binary'
1679 0 0 0 $expl and ref $expl eq 'ARRAY'
1702 0 0 0 keys %{$$self{'Attrs'}{'content-type'};} == 1 and $self->_safe_attr('content-type') eq 'text/plain'
1825 0 1 3 $self->{'Path'} and not $self->{'Path'} =~ /\|$/
1956 0 0 0 ref $sig and ref $sig eq 'ARRAY'
2004 0 0 19 $encoding and $encoding =~ /^(base64|binary|[78]bit|quoted-printable)$/i
2042 0 0 1 $mimetype and $mimetype =~ m[^\S+/\S+$]
2067 31 1 4 $path and not $path =~ /\|$/
2694 0 0 0 @_ == 1 and not ref $_[0]
2886 0 0 0 defined $args{'AuthUser'} and defined $args{'AuthPass'}
0 0 0 defined $args{'AuthUser'} and defined $args{'AuthPass'} and not $args{'NoAuth'}
2944 0 0 0 @_ == 1 and not ref $_[0]
3163 0 0 44 ref $fh and ref $fh ne 'GLOB'

or 2 conditions

line l !l condition
771 0 5 $self->{'Attrs'} ||= {}
772 0 5 $self->{'SubAttrs'} ||= {}
1072 20 0 $params{'Encoding'} || $MIME::Lite::AUTO_ENCODE && $self->suggest_encoding($type) || 'binary'
1270 1 1 $self->{'SubAttrs'}{$tag} ||= {}
1548 20 17 $attrs->{'content-transfer-encoding'} || 'binary'
2237 0 0 $is_smtp || 0
2873 0 0 $args{'To'} ||= \@hdr_to

or 3 conditions

line l !l&&r !l&&!r condition
523 0 0 0 $str =~ /\G$SEP($ADDR)/cog or $str =~ /\G$SEP($ATOM)/cog
1004 7 13 0 $params{'Type'} || ($MIME::Lite::AUTO_CONTENT_TYPE ? 'AUTO' : 'TEXT')
1084 0 19 1 $params{'Disposition'} || ($is_multipart ? undef : 'inline')
1103 0 10 10 $ds_wanted || $ds_defaulted
1116 13 0 36 $KnownField{$lc_tag} or $lc_tag =~ /^(content|resent|x)-./
1433 7 1 0 $rank{lc $fields[$_][0]} || 2 + $#order
1685 0 0 0 not $self->_safe_attr('content-disposition.filename') or $self->_safe_attr('content-type.name')
2015 0 0 1 $type eq 'text' or $type eq 'message'
2245 1 0 0 defined $self->{'Path'} or defined $self->{'FH'}
2293 1 0 0 'FileHandle'->new || Carp::croak("can't get new filehandle\n")
2717 0 0 0 $p{'SetSender'} ||= defined $p{'FromSender'}
2721 0 0 0 $p{'FromSender'} || ($self->get('From'))[0]
2874 0 0 0 $args{'From'} ||= extract_only_addrs(scalar $self->get('Return-Path'))
2875 0 0 0 $args{'From'} ||= extract_only_addrs(scalar $self->get('From'))