Condition Coverage

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


and 2 conditions

line l !l condition
1237 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)?>.*$/
1185 0 8592 0 defined $magic_re and $token =~ /$magic_re/
1214 4936 44 250 $len > 15 and not $token =~ /\*/
1450 30 0 0 $2 eq 192 and $3 eq 168
1496 0 0 4 $ns and $nn
1554 0 0 0 defined $s and defined $n
1579 0 0 0 $ns == 0 and $nn == 0
1620 10 0 0 defined $running_expire and $running_expire + $OPPORTUNISTIC_LOCK_VALID > time
1626 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 Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018.
1322 194 0 $val ||= ""
1686 0 0 $param || '5'

or 3 conditions

line l !l&&r !l&&!r condition
231 0 63 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 ""
1104 0 0 0 $shorthand{$_} || $_
1163 278 54 200 $region == 1 or $region == 2
1194 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
1198 3446 88 1696 $region == 1 or $region == 2
1237 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
1258 3446 88 1696 $region == 1 or $region == 2
1450 0 0 30 $2 eq 10 or $2 eq 192 and $3 eq 168
1557 0 0 0 $s or $n
1584 0 0 0 $Ns == 0 or $Nn == 0