Condition Coverage

blib/lib/Mail/SpamAssassin/Message/Node.pm
Criterion Covered Total %
condition 42 88 47.7


and 3 conditions

line !l l&&!r l&&r condition
110 0 0 231 defined $re and $re ne ''
115 231 0 0 defined $recursive and $recursive == 0
126 1 17 245 $part->{'type'} =~ /$re/ and !$onlyleaves || $amialeaf
130 245 18 0 not $amialeaf and !defined($depth) || $depth > 0
468 0 10 0 not $cnt_8bits and $charset_declared =~ /^(?: (?:US-)?ASCII | ANSI[_ ]? X3\.4- (?:1986|1968) | ISO646-US )\z/six
477 0 2 8 not $cnt_8bits and $charset_declared =~ /^(?: ISO[ -]?8859 (?: - \d{1,2} )? | Windows-\d{4} | UTF-?8 | (KOI8|EUC)-[A-Z]{1,2} | Big5 | GBK | GB[ -]?18030 (?:-20\d\d)? )\z/six
490 2 0 0 $cnt_8bits and eval { do { $rv = $enc_utf8->decode($_[0], 9); defined $rv } }
549 2 0 0 not $decoder and $chset =~ /^GB[ -]?18030(?:-20\d\d)?\z/i
577 2 0 0 not defined $rv and $enc_w1252
0 0 0 not defined $rv and $enc_w1252 and not $_[0] =~ tr/\000-\177\202\204\205\221-\227\231\240\251\255/\200\201\203\206-\220\230\232-\237\241-\250\252-\254\256-\377/c
605 0 0 0 $charset_detected and lc $charset_detected ne lc $charset_declared
607 0 0 0 not $decoder and $charset_detected =~ /^GB[ -]?18030(?:-20\d\d)?\z/i
669 1 105 7 $text ne '' and $self->{'type'} =~ m[^text/html$]i || $self->{'type'} =~ m[^text/plain$]i && _html_render(substr($text, 0, 23))
677 7 0 0 $self->{'normalize'} and $enc_utf8
719 106 0 0 $self->{'normalize'} and $enc_utf8
743 0 0 0 not defined $type and defined $text
852 0 50 750 defined $header_field_body and $header_field_body ne ''
987 16 10 0 $include_mbox and exists $self->{'mbox_sep'}

or 2 conditions

line l !l condition
74 0 181 $opts->{'normalize'} || 0
333 30 102 lc $self->header('content-transfer-encoding') || ''
908 0 4075 $raw ||= 0
953 0 26 $raw ||= 0
954 10 16 $include_mbox ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
64 0 181 0 ref $class || $class
126 0 245 17 !$onlyleaves || $amialeaf
130 18 0 0 !defined($depth) || $depth > 0
369 224 0 4 not defined $bytes or $bytes
461 0 0 10 not defined $charset_declared or $charset_declared eq ''
577 2 0 0 defined $rv || $cnt_8bits
669 7 0 105 $self->{'type'} =~ m[^text/html$]i || $self->{'type'} =~ m[^text/plain$]i && _html_render(substr($text, 0, 23))
677 5 1 1 not defined $self->{'charset'} or $self->{'charset'} =~ /^(?:US-ASCII|UTF-8)\z/i