Condition Coverage

blib/lib/Mail/SpamAssassin/Message/Node.pm
Criterion Covered Total %
condition 40 85 47.0


and 3 conditions

line !l l&&!r l&&r condition
110 0 0 255 defined $re and $re ne ''
115 255 0 0 defined $recursive and $recursive == 0
126 1 17 269 $part->{'type'} =~ /$re/ and !$onlyleaves || $amialeaf
130 269 18 0 not $amialeaf and !defined($depth) || $depth > 0
467 0 10 0 not $cnt_8bits and $charset_declared =~ /^(?: (?:US-)?ASCII | ANSI[_ ]? X3\.4- (?:1986|1968) | ISO646-US )\z/six
476 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
489 2 0 0 $cnt_8bits and eval { do { $rv = $enc_utf8->decode($_[0], 9); defined $rv } }
558 2 0 0 not $decoder and $chset =~ /^GB[ -]?18030(?:-20\d\d)?\z/i
591 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\300-\326\330-\336\340-\366\370-\376/\200\201\203\206-\220\230\232-\237\241-\250\252-\254\256-\277\327\337\367\377/c
627 0 0 0 $charset_detected and lc $charset_detected ne lc $charset_declared
629 0 0 0 not $decoder and $charset_detected =~ /^GB[ -]?18030(?:-20\d\d)?\z/i
700 1 117 7 $text ne '' and $self->{'type'} =~ m[^text/html$]i
706 7 0 0 $self->{'normalize'} and $enc_utf8
748 118 0 0 $self->{'normalize'} and $enc_utf8
772 0 0 0 not defined $type and defined $text
881 0 50 848 defined $header_field_body and $header_field_body ne ''
1016 35 10 0 $include_mbox and exists $self->{'mbox_sep'}

or 2 conditions

line l !l condition
74 0 193 $opts->{'normalize'} || 0
333 42 102 lc $self->header('content-transfer-encoding') || ''
937 0 4405 $raw ||= 0
982 0 45 $raw ||= 0
983 10 35 $include_mbox ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
64 0 193 0 ref $class || $class
126 0 269 17 !$onlyleaves || $amialeaf
130 18 0 0 !defined($depth) || $depth > 0
369 248 0 4 not defined $bytes or $bytes
460 0 0 10 not defined $charset_declared or $charset_declared eq ''
591 2 0 0 defined $rv || $cnt_8bits
706 5 1 1 not defined $self->{'charset'} or $self->{'charset'} =~ /^(?:US-ASCII|UTF-8)\z/i