Condition Coverage

blib/lib/Mail/SpamAssassin/Plugin/MIMEEval.pm
Criterion Covered Total %
condition 1 101 0.9


and 3 conditions

line !l l&&!r l&&r condition
163 0 0 0 defined $type and not Mail::SpamAssassin::Locales::is_charset_ok_for_locales($type, @locales)
211 0 0 0 $pms->{'mime_body_html_count'} > 0 && $pms->{'mime_body_text_count'} == 0
220 0 0 0 $pms->{'mime_multipart_ratio'} >= $min && $pms->{'mime_multipart_ratio'} < $max
242 0 0 0 $cd and $cd =~ /attachment/
246 0 0 0 $ctype =~ /^text/ and $cte =~ /base64/
0 0 0 $ctype =~ /^text/ and $cte =~ /base64/ and !$charset || $charset =~ /(?:us-ascii|ansi_x3\.4-1968|iso-ir-6|ansi_x3\.4-1986|iso_646\.irv:1991|ascii|iso646-us|us|ibm367|cp367|csascii)/
0 0 0 $cd && $cd =~ /^(?:attachment|inline)/
0 0 0 $ctype =~ /^text/ and $cte =~ /base64/ and !$charset || $charset =~ /(?:us-ascii|ansi_x3\.4-1968|iso-ir-6|ansi_x3\.4-1986|iso_646\.irv:1991|ascii|iso646-us|us|ibm367|cp367|csascii)/ and not $cd && $cd =~ /^(?:attachment|inline)/
254 0 0 0 $charset =~ /iso-\S+-\S+\b/i and not $charset =~ /iso-(?:8859-\d{1,2}|2022-(?:jp|kr))\b/
388 0 0 0 $pms->{'mime_multipart_alternative'} and not $cd =~ /attachment/
0 0 0 $pms->{'mime_multipart_alternative'} and not $cd =~ /attachment/ and $ctype eq 'text/plain' || $ctype eq 'text/html'
393 0 0 0 $where != 1 and $cte eq "quoted-printable"
0 0 0 $where != 1 and $cte eq "quoted-printable" and not /^SPAM: /
436 0 0 0 $ctype eq "text/plain" and !defined($charset) || $charset eq 'us-ascii'
450 0 0 0 $ctype eq "text/plain" and $cte eq '' || $cte eq '7bit' || $cte eq '8bit'
457 0 0 0 $subs and would_log("dbg", "eval")
484 0 0 0 not defined $html and $part_type[$i] eq "text/html"
0 0 0 not defined $text and $part_type[$i] eq "text/plain"
490 0 0 0 defined $html and defined $text
492 0 0 0 defined $text and defined $html
0 0 0 defined $text and defined $html and $html > 0
533 0 0 0 defined $qp_ratio && $qp_ratio >= $min
548 0 0 0 $pms->{'uppercase'} > $min && $pms->{'uppercase'} <= $max
592 0 0 0 $pms->{'uppercase'} > $min && $pms->{'uppercase'} <= $max
656 0 0 0 defined $max and $pms->{'base64_length'} > $max

or 2 conditions

line l !l condition
226 0 0 $charset ||= ""
350 0 0 $p->get_header('Content-Transfer-Encoding') || ''
353 0 0 $p->get_header('Content-Disposition') || ''
674 0 0 $p->get_header('content-transfer-encoding') || ''

or 3 conditions

line l !l&&r !l&&!r condition
66 0 63 0 ref $class || $class
246 0 0 0 !$charset || $charset =~ /(?:us-ascii|ansi_x3\.4-1968|iso-ir-6|ansi_x3\.4-1986|iso_646\.irv:1991|ascii|iso646-us|us|ibm367|cp367|csascii)/
291 0 0 0 grep({$_ eq 'all';} @l) || Mail::SpamAssassin::Locales::is_charset_ok_for_locales($charset, @l)
388 0 0 0 $ctype eq 'text/plain' || $ctype eq 'text/html'
436 0 0 0 !defined($charset) || $charset eq 'us-ascii'
450 0 0 0 $cte eq '' || $cte eq '7bit' || $cte eq '8bit'