Branch Coverage

blib/lib/Mail/MtPolicyd/Plugin/SPF.pm
Criterion Covered Total %
branch 20 38 52.6


line true false branch
73 0 2 if ($self->get_uc($r->session, 'enabled') eq 'off')
77 0 2 unless ($r->is_attr_defined('client_address'))
82 0 2 if ($self->_whitelist->match_string($r->attr('client_address')))
89 2 0 if ($r->is_attr_defined('helo_name') and $self->check_helo ne 'off')
91 0 2 if (defined $helo_result)
94 0 2 unless ($r->is_attr_defined('sender'))
100 0 2 unless (defined $sender)
129 2 0 defined $helo && length $helo ? :
147 0 4 if ($result->code eq 'neutral') { }
1 3 elsif ($result->code eq 'fail') { }
1 2 elsif ($result->code eq 'pass') { }
152 1 0 if (defined $self->fail_score and not $r->is_already_done($self->name . '-score'))
155 1 0 if ($fail_mode eq 'reject')
164 0 1 if ($no_pass_action)
165 1 0 if (defined $self->pass_score and not $r->is_already_done($self->name . '-score'))
168 0 1 if ($pass_mode eq 'accept' or $pass_mode eq 'dunno')
182 1 0 if ($message =~ /%LOCAL_EXPL%/)
186 0 1 if ($message =~ /%AUTH_EXPL%/)
188 0 0 if ($result->can('authority_explanation'))