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 256 defined $re and $re ne ""
115 256 0 0 defined $recursive and $recursive == 0
126 1 18 271 $part->{'type'} =~ /$re/ and !$onlyleaves || $amialeaf
130 271 19 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) |
476 0 2 8 not $cnt_8bits and $charset_declared =~ /^(?: ISO[ -]?8859 (?: - \d{1,2} )? | Windows-\d{4} |
489 2 0 0 $cnt_8bits and eval {
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 118 8 $text ne "" and $self->{'type'} =~ m[^text/html$]i
706 8 0 0 $self->{'normalize'} and $enc_utf8
748 119 0 0 $self->{'normalize'} and $enc_utf8
772 0 0 0 not defined $type and defined $text
881 0 50 859 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 196 $opts->{'normalize'} || 0
333 44 102 lc $self->header('content-transfer-encoding') || ''
937 0 4078 $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 196 0 ref $class || $class
126 0 271 18 !$onlyleaves || $amialeaf
130 19 0 0 !defined($depth) || $depth > 0
369 250 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 2 1 not defined $self->{'charset'} or $self->{'charset'} =~ /^(?:US-ASCII|UTF-8)\z/i