Branch Coverage

blib/lib/Mail/BIMI.pm
Criterion Covered Total %
branch 42 58 72.4


line true false branch
61 6 1 if (defined $Mail::BIMI::TestSuite::Resolver)
71 7 15 if ref $self->dmarc_object eq 'Mail::DMARC::PurePerl'
72 14 1 if ref $self->dmarc_object eq 'Mail::DMARC::Result'
77 7 13 if ref $self->dmarc_object eq 'Mail::DMARC::PurePerl'
87 1 40 unless $self->domain
93 20 0 if (exists $dmarc->result->{'published'}) { }
97 2 18 $dmarc->is_subdomain && $published_subdomain_policy ? :
98 0 20 if ($effective_published_policy eq 'quarantine' and $published_policy_pct ne '100')
102 0 20 if ($effective_published_policy ne 'quarantine' and $effective_published_policy ne 'reject')
106 0 20 if ($published_subdomain_policy and $published_subdomain_policy eq 'none')
119 1 20 unless $self->domain
127 1 19 unless ($self->dmarc_result_object)
131 1 18 if ($self->dmarc_result_object->result ne 'pass')
138 0 18 if $self->_check_dmarc_enforcement_status($dmarc, $result)
142 2 16 if (lc $org_domain ne lc $self->domain)
147 0 2 if $self->_check_dmarc_enforcement_status($org_dmarc, $result)
151 1 17 if ($self->options->strict_spf)
152 1 0 if ($self->spf_object)
154 1 0 if ($spf_request)
156 1 0 if ($spf_record)
158 1 0 if (@spf_terms)
160 1 0 if ($last_term->name eq 'all' and $last_term->qualifier eq '+')
170 10 7 unless ($self->record->is_valid)
205 10 38 if (my($error) = $self->record->filter_errors($known_error))
211 0 10 unless ($found_error)
220 0 7 if ($self->record->authority and $self->record->authority->is_relevant) { }
221 0 0 if $self->record->location_is_relevant
240 14 0 if $self->record
245 282 1 unless $self->options->verbose