Branch Coverage

blib/lib/Mail/Milter/Authentication/Handler/SPF.pm
Criterion Covered Total %
branch 19 36 52.7


line true false branch
44 0 34 if (my $error = $@)
83 8 74 if $self->is_local_ip_address
84 2 72 if $self->is_trusted_ip_address
85 0 72 if $self->is_authenticated
88 0 72 unless ($spf_server)
98 1 71 if $env_from eq '<>'
102 5 67 if (not $env_from) { }
112 0 72 unless ($identity)
134 0 50 if ($result_code eq 'none')
135 0 0 if ($config->{'best_guess'})
136 0 0 if ($self->is_handler_loaded('DMARC'))
139 0 0 if ($domain)
142 0 0 if ($org_domain ne $domain)
163 0 50 if ($auth_domain)
168 50 0 unless ($config->{'hide_none'} and $result_code eq 'none')
179 50 0 unless ($config->{'hide_received-spf_header'})
180 50 0 unless ($config->{'hide_none'} and $result_code eq 'none')
189 22 50 if (my $error = $@)