Branch Coverage

blib/lib/Mail/BIMI.pm
Criterion Covered Total %
branch 41 58 70.6


line true false branch
61 0 1 if (defined $Mail::BIMI::TestSuite::Resolver)
71 1 15 if ref $self->dmarc_object eq 'Mail::DMARC::PurePerl'
72 14 1 if ref $self->dmarc_object eq 'Mail::DMARC::Result'
77 1 13 if ref $self->dmarc_object eq 'Mail::DMARC::PurePerl'
87 1 31 unless $self->domain
93 14 0 if (exists $dmarc->result->{'published'}) { }
97 2 12 $dmarc->is_subdomain && $published_subdomain_policy ? :
98 0 14 if ($effective_published_policy eq 'quarantine' and $published_policy_pct ne '100')
102 0 14 if ($effective_published_policy ne 'quarantine' and $effective_published_policy ne 'reject')
106 0 14 if ($published_subdomain_policy and $published_subdomain_policy eq 'none')
119 1 14 unless $self->domain
127 1 13 unless ($self->dmarc_result_object)
131 1 12 if ($self->dmarc_result_object->result ne 'pass')
138 0 12 if $self->_check_dmarc_enforcement_status($dmarc, $result)
142 2 10 if (lc $org_domain ne lc $self->domain)
147 0 2 if $self->_check_dmarc_enforcement_status($org_dmarc, $result)
151 1 11 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 7 4 unless ($self->record->is_valid)
205 7 15 if (my($error) = $self->record->filter_errors($known_error))
211 0 7 unless ($found_error)
220 0 4 if ($self->record->authority and $self->record->authority->is_relevant) { }
221 0 0 if $self->record->location_is_relevant
240 5 0 if $self->record
245 236 1 unless $self->options->verbose