Condition Coverage

blib/lib/MIME/Lite.pm
Criterion Covered Total %
condition 39 118 33.0


and 3 conditions

line !l l&&!r l&&r condition
1086 10 0 10 $is_top && !exists $params{'Datestamp'}
1087 10 0 10 $ds_wanted || $ds_defaulted and not exists $params{'Date'}
1198 27 0 0 is_mime_field($tag) and not $QUIET
1204 26 0 1 ref $value && ref $value eq 'ARRAY'
1537 1 19 17 not $is_multipart and $enc eq "binary"
1666 0 0 0 $expl and ref $expl eq "ARRAY"
1689 0 0 0 keys %{$$self{"Attrs"}{"content-type"};} == 1 and $self->_safe_attr("content-type") eq "text/plain"
1812 0 1 3 $self->{'Path'} and not $self->{'Path'} =~ /\|$/u
1939 0 0 0 ref $sig and ref $sig eq "ARRAY"
1987 0 0 19 $encoding and $encoding =~ /^(base64|binary|[78]bit|quoted-printable)$/iu
2025 0 0 1 $mimetype and $mimetype =~ m[^\S+/\S+$]u
2050 13 1 4 $path and not $path =~ /\|$/u
2417 39 0 0 length $value > 72 and not $value =~ /\n/u
2713 0 0 0 @_ == 1 and not ref $_[0]
2905 0 0 0 defined $args{'AuthUser'} and defined $args{'AuthPass'}
0 0 0 defined $args{'AuthUser'} and defined $args{'AuthPass'} and not $args{'NoAuth'}
2963 0 0 0 @_ == 1 and not ref $_[0]
3182 0 0 22 ref $fh and ref $fh ne "GLOB"

or 2 conditions

line l !l condition
755 0 5 $self->{'Attrs'} ||= {}
756 0 5 $self->{'SubAttrs'} ||= {}
1056 20 0 $params{'Encoding'} || $AUTO_ENCODE && $self->suggest_encoding($type) || 'binary'
1255 1 1 $self->{'SubAttrs'}{$tag} ||= {}
1535 20 17 $attrs->{'content-transfer-encoding'} || 'binary'
2222 0 0 $is_smtp || 0
2427 0 0 shift() || "\n"
2892 0 0 $args{'To'} ||= \@hdr_to

or 3 conditions

line l !l&&r !l&&!r condition
507 0 0 0 $str =~ /\G$SEP($ADDR)/cgou or $str =~ /\G$SEP($ATOM)/cgou
988 7 13 0 $params{'Type'} || ($AUTO_CONTENT_TYPE ? 'AUTO' : 'TEXT')
1068 0 19 1 $params{'Disposition'} || ($is_multipart ? undef : 'inline')
1087 0 10 10 $ds_wanted || $ds_defaulted
1100 13 0 36 $KnownField{$lc_tag} or $lc_tag =~ /^(content|resent|x)-./u
1420 7 1 0 $rank{lc $fields[$_][0]} || 2 + $#order
1672 0 0 0 not $self->_safe_attr("content-disposition.filename") or $self->_safe_attr("content-type.name")
1998 0 0 1 $type eq "text" or $type eq "message"
2230 1 0 0 defined $self->{'Path'} or defined $self->{'FH'}
2278 1 0 0 'FileHandle'->new || Carp::croak("can't get new filehandle\n")
2442 0 0 0 s/^(.{18,72}[;,])([ \t])//u or s/^(.{18,72})([ \t])//u
0 0 0 s/^(.{18,72}[;,])([ \t])//u or s/^(.{18,72})([ \t])//u or s/^(.{72,}?)([ \t])//u
2736 0 0 0 $p{'SetSender'} ||= defined $p{'FromSender'}
2740 0 0 0 $p{'FromSender'} || ($self->get('From'))[0]
2893 0 0 0 $args{'From'} ||= extract_only_addrs(scalar $self->get("Return-Path"))
2894 0 0 0 $args{'From'} ||= extract_only_addrs(scalar $self->get("From"))