Condition Coverage

blib/lib/Mail/SpamAssassin/Message.pm
Criterion Covered Total %
condition 74 115 64.3


and 3 conditions

line !l l&&!r l&&r condition
207 0 30 119 Mail::SpamAssassin::Util::am_running_in_taint_mode() and grep {not &Scalar::Util::tainted($_);} @message
257 0 149 0 @message and $message[0] =~ /\015\012/ || $message[-1] =~ /\015\012/
396 134 0 15 $self->{'type'} =~ m[^multipart/]i and $#message > 0
134 1 14 $self->{'type'} =~ m[^multipart/]i and $#message > 0 and $message[0] =~ /\S/
398 0 4 10 defined $boundary and $message[0] =~ /^--\Q$boundary\E/
775 165 0 20 $msg->{'type'} =~ m[^multipart/]i and defined $boundary
165 0 20 $msg->{'type'} =~ m[^multipart/]i and defined $boundary and $subparse > 0
783 161 0 4 $msg->{'type'} =~ m[^message/(?!partial\z)]i and $subparse > 0
799 0 0 4 $msg->{'type'} =~ m[^message/(?:rfc822|global)\z]i and defined $msg->{'decoded'}
0 0 4 $msg->{'type'} =~ m[^message/(?:rfc822|global)\z]i and defined $msg->{'decoded'} and $msg->{'decoded'} ne ''
878 100 1 19 substr($body->[$line], 0, 2) eq '--' and $body->[$line] =~ /^--\Q$boundary\E\s*$/
886 0 14 5 $line + 1 < $tmp_line and not $$body[$line + 1] =~ /^[\041-\071\073-\176]+:/
915 2183 33 44 defined $boundary && substr($_, 0, 2) eq '--' && /^--\Q$boundary\E(?:--)?\s*$/
968 0 24 0 $line_count and not $$body[-$line_count] =~ /^[\041-\071\073-\176]+:/
1000 44 0 1 /^[ \t]/ and $header
1175 3 130 8 $scansize and length $rnd > $scansize
1179 5 1 2 $idx >= 0 and $idx - $scansize <= 1024
1185 5 0 1 $idx >= 0 and $idx - $scansize <= 1024
1201 4 130 7 $html_needs_setting and $type eq 'text/html'
1260 3 97 8 $scansize and $rawlen > $scansize
1264 5 1 2 $idx >= 0 and $idx - $scansize <= 1024
1270 5 0 1 $idx >= 0 and $idx - $scansize <= 1024
1276 5 0 0 $idx >= 0 and $idx - $scansize <= 1024

or 2 conditions

line l !l condition
105 101 48 $opts->{'parsenow'} || 0
106 0 149 $opts->{'normalize'} || 0
123 142 7 $opts->{'body_part_scan_size'} || 0
124 142 7 $opts->{'rawbody_part_scan_size'} || 0
1080 4 161 $msg->header('content-disposition') || ''
1132 0 0 $_->{'type'} or ''
1161 92 40 $self->get_header('subject') || "\n"
1302 1 0 $length ||= 2048

or 3 conditions

line l !l&&r !l&&!r condition
101 0 149 0 ref $class || $class
157 18 0 68 ref $message eq 'GLOB' or ref($message) =~ /^IO::/
257 0 0 149 $message[0] =~ /\015\012/ || $message[-1] =~ /\015\012/
478 32 0 44 not defined $hdr or $hdr eq ''
917 12 32 2216 --$line_count == 0 or $found_end_boundary
954 5 39 0 $p_boundary ||= $boundary
1076 165 0 0 !($ct[0] =~ m[^multipart/]i) || defined $boundary
1323 0 0 1 $j < 0 or $j - $ofs + 1 > 4096
1325 0 0 0 $j < 0 or $j - $ofs + 1 > 4096
1327 0 0 0 $j < 0 or $j - $ofs + 1 > 4096