Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
1103 10 0 10 $is_top && !exists $params{'Datestamp'}
1104 10 0 10 $ds_wanted || $ds_defaulted and not exists $params{'Date'}
1214 27 0 0 is_mime_field($tag) and not $MIME::Lite::QUIET
1220 26 0 1 ref $value && ref $value eq 'ARRAY'
1551 1 19 17 not $is_multipart and $enc eq 'binary'
1680 0 0 0 $expl and ref $expl eq 'ARRAY'
1703 0 0 0 keys %{$$self{'Attrs'}{'content-type'};} == 1 and $self->_safe_attr('content-type') eq 'text/plain'
1826 0 1 3 $self->{'Path'} and not $self->{'Path'} =~ /\|$/
1957 0 0 0 ref $sig and ref $sig eq 'ARRAY'
2005 0 0 19 $encoding and $encoding =~ /^(base64|binary|[78]bit|quoted-printable)$/i
2043 0 0 1 $mimetype and $mimetype =~ m[^\S+/\S+$]
2068 31 1 4 $path and not $path =~ /\|$/
2697 0 0 0 @_ == 1 and not ref $_[0]
2889 0 0 0 defined $args{'AuthUser'} and defined $args{'AuthPass'}
0 0 0 defined $args{'AuthUser'} and defined $args{'AuthPass'} and not $args{'NoAuth'}
2947 0 0 0 @_ == 1 and not ref $_[0]
3166 0 0 44 ref $fh and ref $fh ne 'GLOB'

or 2 conditions

line l !l condition
772 0 5 $self->{'Attrs'} ||= {}
773 0 5 $self->{'SubAttrs'} ||= {}
1073 20 0 $params{'Encoding'} || $MIME::Lite::AUTO_ENCODE && $self->suggest_encoding($type) || 'binary'
1271 1 1 $self->{'SubAttrs'}{$tag} ||= {}
1549 20 17 $attrs->{'content-transfer-encoding'} || 'binary'
2240 0 0 $is_smtp || 0
2876 0 0 $args{'To'} ||= \@hdr_to

or 3 conditions

line l !l&&r !l&&!r condition
524 0 0 0 $str =~ /\G$SEP($ADDR)/cog or $str =~ /\G$SEP($ATOM)/cog
1005 7 13 0 $params{'Type'} || ($MIME::Lite::AUTO_CONTENT_TYPE ? 'AUTO' : 'TEXT')
1085 0 19 1 $params{'Disposition'} || ($is_multipart ? undef : 'inline')
1104 0 10 10 $ds_wanted || $ds_defaulted
1117 13 0 36 $KnownField{$lc_tag} or $lc_tag =~ /^(content|resent|x)-./
1434 7 1 0 $rank{lc $fields[$_][0]} || 2 + $#order
1686 0 0 0 not $self->_safe_attr('content-disposition.filename') or $self->_safe_attr('content-type.name')
2016 0 0 1 $type eq 'text' or $type eq 'message'
2248 1 0 0 defined $self->{'Path'} or defined $self->{'FH'}
2296 1 0 0 'FileHandle'->new || Carp::croak("can't get new filehandle\n")
2720 0 0 0 $p{'SetSender'} ||= defined $p{'FromSender'}
2724 0 0 0 $p{'FromSender'} || ($self->get('From'))[0]
2877 0 0 0 $args{'From'} ||= extract_only_addrs(scalar $self->get('Return-Path'))
2878 0 0 0 $args{'From'} ||= extract_only_addrs(scalar $self->get('From'))