Condition Coverage

blib/lib/Mail/SpamAssassin/Conf.pm
Criterion Covered Total %
condition 37 146 25.3


and 3 conditions

line !l l&&!r l&&r condition
225 0 0 1225 defined $value and not $value =~ /^$/
0 6 1219 defined $value and not $value =~ /^$/ and scalar @scores == 1 || scalar @scores == 4
245 1222 3 0 $relative and not exists $self->{'scoreset'}[0]{$rule}
399 0 0 0 defined $value and not $value =~ /^$/
415 0 0 0 defined $value and not $value =~ /^$/
481 0 0 0 defined $value and not $value =~ /^$/
884 0 0 0 defined $string and $string =~ /\S/
1216 0 0 0 defined $value and not $value =~ /^$/
1517 0 0 122 defined $value and not $value =~ /^$/
1672 0 0 1 $address =~ /$IP_ADDRESS/ and $port >= 1
0 0 1 $address =~ /$IP_ADDRESS/ and $port >= 1 and $port <= 65535
1961 0 0 0 defined $value and $value =~ s/^(allow|deny)\s+//i
1985 0 0 0 defined $value and $value ne ''
2113 0 0 0 /^(no)?(.+)\z/s and exists $all_kw{$2}
3607 0 0 1 defined $value and not $value =~ /^$/
3618 1 1 0 defined $_ and s/\s*([smhdw])\z//i
3650 0 0 10620 defined $value and not $value =~ /^$/
3674 0 0 35881 defined $value and not $value =~ /^$/
3698 0 0 3745 defined $value and not $value =~ /^$/
3754 0 0 61 defined $value and not $value =~ /^$/

or 2 conditions

line l !l condition
1910 0 0 $2 || 1220
2110 0 0 $self->{'bayes_token_sources'} ||= {}
4843 0 0 $tflags ||= ''
4871 0 0 $tflags ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
225 1039 186 0 scalar @scores == 1 || scalar @scores == 4
989 0 247 61 $type eq 'ham' or $type eq 'all'
994 61 247 0 $type eq 'spam' or $type eq 'all'
1030 0 0 0 $type eq 'ham' or $type eq 'all'
1034 0 0 0 $type eq 'spam' or $type eq 'all'
1064 0 61 0 not defined $value or $value eq ''
1114 61 0 0 $self->{'report_safe'} || grep({lc $_->[0] eq 'report';} @{$$self{'headers_spam'};})
1219 0 0 0 lc $value eq 'yes' or $value eq '1'
0 0 0 lc $value eq 'no' or $value eq '0'
1378 0 32 0 not defined $value or $value eq ''
1432 0 32 0 not defined $value or $value eq ''
1488 0 32 0 not defined $value or $value eq ''
1539 0 61 0 not defined $value or $value eq ''
1694 0 1 0 not defined $value or $value eq ''
1740 0 0 0 $1 < 1 or $1 > 65535
1743 0 0 0 $1 < 1 or $1 > 65535
1744 0 0 0 $2 < 1 or $2 > 65535
1780 0 0 0 $1 > 65535 or $2 > 65535
1818 0 0 0 not defined $value or $value eq ''
3723 0 78 0 not defined $value or $value eq ''
4441 0 91 0 ref $class || $class
4838 8 1 4 $type == $TYPE_HEAD_TESTS or $type == $TYPE_HEAD_EVALS
4864 0 0 4 $type == $TYPE_BODY_TESTS or $type == $TYPE_BODY_EVALS
0 4 0 $type == $TYPE_BODY_TESTS or $type == $TYPE_BODY_EVALS or $type == $TYPE_URI_TESTS
4 0 0 $type == $TYPE_BODY_TESTS or $type == $TYPE_BODY_EVALS or $type == $TYPE_URI_TESTS or $type == $TYPE_URI_EVALS
5025 0 0 2 $self->{'main'}{'keep_config_parsing_metadata'} || $self->{'allow_user_rules'}