Condition Coverage

blib/lib/Mail/SpamAssassin/Plugin/SPF.pm
Criterion Covered Total %
condition 5 56 8.9


and 3 conditions

line !l l&&!r l&&r condition
430 0 0 0 $scanner->{'spf_checked'} and $scanner->{'spf_helo_checked'}
481 0 0 0 $scanner->{'spf_checked'} and $scanner->{'spf_helo_checked'}
490 0 0 0 $ishelo and $scanner->{'spf_helo_checked'}
0 0 0 not $ishelo and $scanner->{'spf_checked'}
621 0 0 0 $ishelo and $helo =~ /^[\[!]?\d+\.\d+\.\d+\.\d+[\]!]?$/ || $helo =~ /^[^.]+$/
626 0 0 0 $helo and $scanner->server_failed_to_respond_for_domain($helo)
779 49 0 28 $scanner->{'num_relays_trusted'} > 0 and not $scanner->{'conf'}{'always_trust_envelope_sender'}
807 77 0 0 $scanner->{'spf_checked'} and not $scanner->{'spf_pass'}
845 77 0 0 $scanner->{'spf_checked'} and not $scanner->{'spf_pass'}

or 2 conditions

line l !l condition
645 0 0 $helo ||= 'unknown'
717 0 0 $result ||= 'timeout'
718 0 0 $comment ||= ''
720 0 0 $text ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
52 0 63 0 ref $class || $class
399 0 0 0 $identity eq 'mfrom' or $identity eq 'mailfrom'
450 0 0 0 $identity eq 'mfrom' or $identity eq 'mailfrom'
490 0 0 0 $ishelo and $scanner->{'spf_helo_checked'} or not $ishelo and $scanner->{'spf_checked'}
504 0 0 0 not defined $Mail::SPF::VERSION or $Mail::SPF::VERSION < 2.001
535 0 0 0 not defined $Mail::SPF::Query::VERSION or $Mail::SPF::Query::VERSION < 1.996
621 0 0 0 $helo =~ /^[\[!]?\d+\.\d+\.\d+\.\d+[\]!]?$/ || $helo =~ /^[^.]+$/