Branch Coverage

blib/lib/Mail/Milter/Authentication/Handler/SPF.pm
Criterion Covered Total %
branch 23 40 57.5


line true false branch
41 0 56 if (my $error = $@)
78 8 106 if $self->is_local_ip_address
79 2 104 if $self->is_trusted_ip_address
80 0 104 if $self->is_authenticated
83 0 104 unless ($spf_server)
93 1 103 if $env_from eq "<>"
97 5 99 if (not $env_from) { }
107 0 104 unless ($identity)
124 104 0 unless $spf_results
133 14 90 if ($result_code eq "none")
134 0 14 if ($config->{'best_guess'})
135 0 0 if ($self->is_handler_loaded("DMARC"))
138 0 0 if ($domain)
141 0 0 if ($org_domain ne $domain)
153 0 0 unless $spf_results
166 0 104 if ($auth_domain)
171 100 4 unless ($config->{'hide_none'} and $result_code eq "none")
182 104 0 unless ($config->{'hide_received-spf_header'})
183 100 4 unless ($config->{'hide_none'} and $result_code eq "none")
192 0 104 if (my $error = $@)