Condition Coverage

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


and 2 conditions

line l !l condition
1230 96 154 $region == 0 and 1
18 78 $region == 1 and 1
0 18 $region == 2 and 0

and 3 conditions

line !l l&&!r l&&r condition
267 0 0 0 $self->{'store'} and $self->{'store'}->UNIVERSAL::can('prefork_init')
279 0 0 0 $self->{'store'} and $self->{'store'}->UNIVERSAL::can('spamd_child_init')
291 0 0 0 $self->{'conf'}{'use_bayes'} and $self->{'conf'}{'use_bayes_rules'}
298 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
420 0 2 2 $seen eq 's' and $isspam
2 0 0 $seen eq 'h' and not $isspam
973 0 0 14 defined $msgid and $msgid ne ''
0 0 14 defined $msgid and $msgid ne '' and not $msgid =~ /^\s*<\s*(?:\@sa_generated)?>.*$/
1178 0 8592 0 defined $magic_re and $token =~ /$magic_re/
1207 4936 44 250 $len > 15 and not $token =~ /\*/
1443 30 0 0 $2 eq '192' and $3 eq '168'
1489 0 0 4 $ns and $nn
1547 0 0 0 defined $s and defined $n
1572 0 0 0 $ns == 0 and $nn == 0
1613 10 0 0 defined $running_expire and $running_expire + $OPPORTUNISTIC_LOCK_VALID > time
1619 6 4 0 not $journal_only and $self->{'store'}->expiry_due

or 2 conditions

line l !l condition
770 282 0 $msgtokens->{$tok} || '(unknown)'
788 0 4 not @sorted or !1
1315 194 0 $val ||= ''
1679 0 0 $param || '5'

or 3 conditions

line l !l&&r !l&&!r condition
231 0 62 0 ref $class || $class
298 0 0 0 $min == 0 || $pms->{'bayes_score'} > $min
0 0 0 $max eq 'undef' || $pms->{'bayes_score'} <= $max
355 0 0 0 $ig_from || $ig_to
385 0 2 0 $self->{'store'}->tie_db_readonly || $self->{'store'}->tie_db_writable
420 2 0 2 $seen eq 's' and $isspam or $seen eq 'h' and not $isspam
519 0 0 0 $self->{'store'}->tie_db_readonly || $self->{'store'}->tie_db_writable
986 0 0 14 not defined $date or $date eq ''
1098 0 0 0 $shorthand{$_} || $_
1156 278 54 200 $region == 1 or $region == 2
1187 1918 1444 5230 $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
1191 3446 88 1696 $region == 1 or $region == 2
1230 154 78 18 $region == 0 and 1 or $region == 1 and 1
78 0 18 $region == 0 and 1 or $region == 1 and 1 or $region == 2 and 0
1251 3446 88 1696 $region == 1 or $region == 2
1443 0 0 30 $2 eq '10' or $2 eq '192' and $3 eq '168'
1550 0 0 0 $s or $n
1577 0 0 0 $Ns == 0 or $Nn == 0