Condition Coverage

blib/lib/Mail/SpamAssassin/Plugin/Bayes.pm
Criterion Covered Total %
condition 45 119 37.8


and 2 conditions

line l !l condition
1229 102 154 $region == 0 and 1
24 78 $region == 1 and 1
0 24 $region == 2 and 0

and 3 conditions

line !l l&&!r l&&r condition
266 0 0 0 $self->{'store'} and $self->{'store'}->UNIVERSAL::can('prefork_init')
278 0 0 0 $self->{'store'} and $self->{'store'}->UNIVERSAL::can('spamd_child_init')
290 0 0 0 $self->{'conf'}{'use_bayes'} and $self->{'conf'}{'use_bayes_rules'}
297 0 0 0 defined $pms->{'bayes_score'} and $min == 0 || $pms->{'bayes_score'} > $min
0 0 0 defined $pms->{'bayes_score'} and $min == 0 || $pms->{'bayes_score'} > $min and $max eq 'undef' || $pms->{'bayes_score'} <= $max
419 0 2 2 $seen eq 's' and $isspam
2 0 0 $seen eq 'h' and not $isspam
972 0 0 14 defined $msgid and $msgid ne ''
0 0 14 defined $msgid and $msgid ne '' and not $msgid =~ /^\s*<\s*(?:\@sa_generated)?>.*$/
1177 0 8598 0 defined $magic_re and $token =~ /$magic_re/
1206 4936 44 256 $len > 15 and not $token =~ /\*/
1442 30 0 0 $2 eq '192' and $3 eq '168'
1488 0 0 4 $ns and $nn
1546 0 0 0 defined $s and defined $n
1571 0 0 0 $ns == 0 and $nn == 0
1612 10 0 0 defined $running_expire and $running_expire + $OPPORTUNISTIC_LOCK_VALID > time
1618 6 4 0 not $journal_only and $self->{'store'}->expiry_due

or 2 conditions

line l !l condition
769 272 0 $msgtokens->{$tok} || '(unknown)'
787 0 4 not @sorted or !1
1314 194 0 $val ||= ''
1672 0 0 $param || '5'

or 3 conditions

line l !l&&r !l&&!r condition
230 0 63 0 ref $class || $class
297 0 0 0 $min == 0 || $pms->{'bayes_score'} > $min
0 0 0 $max eq 'undef' || $pms->{'bayes_score'} <= $max
354 0 0 0 $ig_from || $ig_to
384 0 2 0 $self->{'store'}->tie_db_readonly || $self->{'store'}->tie_db_writable
419 2 0 2 $seen eq 's' and $isspam or $seen eq 'h' and not $isspam
518 0 0 0 $self->{'store'}->tie_db_readonly || $self->{'store'}->tie_db_writable
985 0 0 14 not defined $date or $date eq ''
1097 0 0 0 $shorthand{$_} || $_
1155 278 60 200 $region == 1 or $region == 2
1186 1918 1444 5236 $len < 3 or $token =~ /^(?:a(?:ble|l(?:ready|l)|n[dy]|re)|b(?:ecause|oth)|c(?:an|ome)|e(?:ach|mail|ven)|f(?:ew|irst|or|rom)|give|h(?:a(?:ve|s)|ttp)|i(?:n(?:formation|to)|t\'s)|just|know|l(?:ike|o(?:ng|ok))|m(?:a(?:de|il(?:(?:ing|to))?|ke|ny)|o(?:re|st)|uch)|n(?:eed|o[tw]|umber)|o(?:ff|n(?:ly|e)|ut|wn)|p(?:eople|lace)|right|s(?:ame|ee|uch)|t(?:h(?:at|is|rough|e)|ime)|using|w(?:eb|h(?:ere|y)|ith(?:out)?|or(?:ld|k))|y(?:ears?|ou(?:(?:\'re|r))?))$/i
1190 3446 94 1696 $region == 1 or $region == 2
1229 154 78 24 $region == 0 and 1 or $region == 1 and 1
78 0 24 $region == 0 and 1 or $region == 1 and 1 or $region == 2 and 0
1250 3446 94 1696 $region == 1 or $region == 2
1442 0 0 30 $2 eq '10' or $2 eq '192' and $3 eq '168'
1549 0 0 0 $s or $n
1576 0 0 0 $Ns == 0 or $Nn == 0