Branch Coverage

blib/lib/Mail/Milter/Authentication/Handler/AlignedFrom.pm
Criterion Covered Total %
branch 28 28 100.0


line true false branch
32 2 42 if $env_from eq '<>'
44 6 44 unless $email
57 92 44 if lc $header ne 'from'
65 2 48 unless $email
107 6 38 if ($self->{'from_header_count'} > 1) { }
6 32 elsif ($self->{'envfrom_count'} > 1) { }
2 30 elsif (not $self->{'smtp_domain'} || $self->{'header_domain'}) { }
4 26 elsif (not $self->{'smtp_domain'}) { }
4 22 elsif (not $self->{'header_domain'}) { }
10 12 elsif ($self->{'smtp_address'} eq $self->{'header_address'}) { }
4 8 elsif ($self->{'smtp_domain'} eq $self->{'header_domain'}) { }
145 4 4 if ($self->is_handler_loaded('DMARC')) { }
153 3 1 if ($org_smtp_domain eq $org_header_domain) { }
172 39 5 if ($comment)