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
224 0 0 1265 defined $value and not $value =~ /^$/
0 6 1259 defined $value and not $value =~ /^$/ and scalar @scores == 1 || scalar @scores == 4
244 1262 3 0 $relative and not exists $self->{'scoreset'}[0]{$rule}
398 0 0 0 defined $value and not $value =~ /^$/
414 0 0 0 defined $value and not $value =~ /^$/
480 0 0 0 defined $value and not $value =~ /^$/
883 0 0 0 defined $string and $string =~ /\S/
1193 0 0 0 defined $value and not $value =~ /^$/
1465 0 0 126 defined $value and not $value =~ /^$/
1620 0 0 1 $address =~ /$IP_ADDRESS/ and $port >= 1
0 0 1 $address =~ /$IP_ADDRESS/ and $port >= 1 and $port <= 65535
1909 0 0 0 defined $value and $value =~ s/^(allow|deny)\s+//i
1933 0 0 0 defined $value and $value ne ''
2061 0 0 0 /^(no)?(.+)\z/s and exists $all_kw{$2}
3506 0 0 1 defined $value and not $value =~ /^$/
3517 1 1 0 defined $_ and s/\s*([smhdw])\z//i
3610 0 0 8568 defined $value and not $value =~ /^$/
3804 0 0 28918 defined $value and not $value =~ /^$/
3835 0 0 3025 defined $value and not $value =~ /^$/
3891 0 0 63 defined $value and not $value =~ /^$/

or 2 conditions

line l !l condition
1858 0 0 $2 || 1220
2058 0 0 $self->{'bayes_token_sources'} ||= {}
4971 0 0 $tflags ||= ''
4999 0 0 $tflags ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
224 1073 192 0 scalar @scores == 1 || scalar @scores == 4
966 0 253 63 $type eq 'ham' or $type eq 'all'
971 63 253 0 $type eq 'spam' or $type eq 'all'
1007 0 0 0 $type eq 'ham' or $type eq 'all'
1011 0 0 0 $type eq 'spam' or $type eq 'all'
1041 0 63 0 not defined $value or $value eq ''
1091 63 0 0 $self->{'report_safe'} || grep({lc $_->[0] eq 'report';} @{$$self{'headers_spam'};})
1196 0 0 0 lc $value eq 'yes' or $value eq '1'
0 0 0 lc $value eq 'no' or $value eq '0'
1326 0 32 0 not defined $value or $value eq ''
1380 0 32 0 not defined $value or $value eq ''
1436 0 32 0 not defined $value or $value eq ''
1487 0 63 0 not defined $value or $value eq ''
1642 0 1 0 not defined $value or $value eq ''
1688 0 0 0 $1 < 1 or $1 > 65535
1691 0 0 0 $1 < 1 or $1 > 65535
1692 0 0 0 $2 < 1 or $2 > 65535
1728 0 0 0 $1 > 65535 or $2 > 65535
1766 0 0 0 not defined $value or $value eq ''
3860 0 63 0 not defined $value or $value eq ''
4579 0 81 0 ref $class || $class
4966 8 1 4 $type == $TYPE_HEAD_TESTS or $type == $TYPE_HEAD_EVALS
4992 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
5155 0 0 2 $self->{'main'}{'keep_config_parsing_metadata'} || $self->{'allow_user_rules'}