Condition Coverage

blib/lib/Mail/SpamAssassin/Message.pm
Criterion Covered Total %
condition 50 78 64.1


and 3 conditions

line !l l&&!r l&&r condition
234 0 137 0 @message and $message[0] =~ /\015\012/ || $message[-1] =~ /\015\012/
370 122 0 15 $self->{'type'} =~ m[^multipart/]i and $#message > 0
122 1 14 $self->{'type'} =~ m[^multipart/]i and $#message > 0 and $message[0] =~ /\S/
372 0 4 10 defined $boundary and $message[0] =~ /^--\Q$boundary\E/
746 153 0 20 $msg->{'type'} =~ m[^multipart/]i and defined $boundary
153 0 20 $msg->{'type'} =~ m[^multipart/]i and defined $boundary and $subparse > 0
754 149 0 4 $msg->{'type'} =~ m[^message/(?!partial\z)]i and $subparse > 0
770 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 ''
849 100 1 19 substr($body->[$line], 0, 2) eq '--' and $body->[$line] =~ /^--\Q$boundary\E\s*$/
857 0 14 5 $line + 1 < $tmp_line and not $$body[$line + 1] =~ /^[\041-\071\073-\176]+:/
885 2183 33 44 defined $boundary && substr($_, 0, 2) eq '--' && /^--\Q$boundary\E(?:--)?\s*$/
938 0 24 0 $line_count and not $$body[-$line_count] =~ /^[\041-\071\073-\176]+:/
963 44 0 1 /^[ \t]/ and $header
1141 4 118 7 $html_needs_setting and $type eq 'text/html'

or 2 conditions

line l !l condition
105 101 36 $opts->{'parsenow'} || 0
106 0 137 $opts->{'normalize'} || 0
1043 4 149 $msg->header('content-disposition') || ''
1095 0 0 $_->{'type'} or ''
1122 80 40 $self->get_header('subject') || "\n"
1210 4 0 $length ||= 2048

or 3 conditions

line l !l&&r !l&&!r condition
101 0 137 0 ref $class || $class
154 18 0 56 ref $message eq 'GLOB' or ref($message) =~ /^IO::/
234 0 0 137 $message[0] =~ /\015\012/ || $message[-1] =~ /\015\012/
452 43 0 12 not defined $hdr or $hdr eq ''
887 12 32 2216 --$line_count == 0 or $found_end_boundary
924 5 39 0 $p_boundary ||= $boundary
1039 153 0 0 !($ct[0] =~ m[^multipart/]i) || defined $boundary