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
161 0 0 0 defined $type and not Mail::SpamAssassin::Locales::is_charset_ok_for_locales($type, @locales)
205 0 0 0 $pms->{'mime_body_html_count'} > 0 && $pms->{'mime_body_text_count'} == 0
214 0 0 0 $pms->{'mime_multipart_ratio'} >= $min && $pms->{'mime_multipart_ratio'} < $max
236 0 0 0 $cd and $cd =~ /attachment/
240 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)/
248 0 0 0 $charset =~ /iso-\S+-\S+\b/i and not $charset =~ /iso-(?:8859-\d{1,2}|2022-(?:jp|kr))\b/
381 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'
386 0 0 0 $where != 1 and $cte eq 'quoted-printable'
0 0 0 $where != 1 and $cte eq 'quoted-printable' and not /^SPAM: /
429 0 0 0 $ctype eq 'text/plain' and !defined($charset) || $charset eq 'us-ascii'
443 0 0 0 $ctype eq 'text/plain' and $cte eq '' || $cte eq '7bit' || $cte eq '8bit'
450 0 0 0 $subs and would_log('dbg', 'eval')
477 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'
483 0 0 0 defined $html and defined $text
485 0 0 0 defined $text and defined $html
0 0 0 defined $text and defined $html and $html > 0
525 0 0 0 defined $qp_ratio && $qp_ratio >= $min
540 0 0 0 $pms->{'uppercase'} > $min && $pms->{'uppercase'} <= $max
584 0 0 0 $pms->{'uppercase'} > $min && $pms->{'uppercase'} <= $max
648 0 0 0 defined $max and $pms->{'base64_length'} > $max

or 2 conditions

line l !l condition
220 0 0 $charset ||= ''
343 0 0 $p->get_header('Content-Transfer-Encoding') || ''
346 0 0 $p->get_header('Content-Disposition') || ''
666 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
240 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)/
285 0 0 0 grep({$_ eq 'all';} @l) || Mail::SpamAssassin::Locales::is_charset_ok_for_locales($charset, @l)
381 0 0 0 $ctype eq 'text/plain' || $ctype eq 'text/html'
429 0 0 0 !defined($charset) || $charset eq 'us-ascii'
443 0 0 0 $cte eq '' || $cte eq '7bit' || $cte eq '8bit'