Branch Coverage

blib/lib/Mail/Milter/Authentication/Handler/ARC.pm
Criterion Covered Total %
branch 0 188 0.0


line true false branch
55 0 0 unless defined $domain
60 0 0 if ($trusted_domains)
62 0 0 if ($domain eq lc $trusted_domain)
70 0 0 if ($rbl_whitelist)
71 0 0 if ($self->rbl_check_domain($domain, $rbl_whitelist))
84 0 0 unless $aar
95 0 0 unless $smtp_mailfrom
104 0 0 if (my $error = $@)
116 0 0 unless $aar
127 0 0 unless ($entry_domain)
131 0 0 if ($entry_domain)
135 0 0 unless $entry_domain
140 0 0 unless ($entry_selector)
146 0 0 unless $entry_selector
150 0 0 unless $entry_selector
161 0 0 if (my $error = $@)
172 0 0 unless $self->is_handler_loaded('SPF')
175 0 0 unless $aar
185 0 0 if scalar @{$result->search({'isa', 'subentry', 'key', 'x-arc-domain'})->children;} > 0
190 0 0 unless $smtp_mailfrom
200 0 0 if $header->key ne 'spf'
206 0 0 unless $this_mailfrom
209 0 0 if $header->value eq 'pass'
214 0 0 if $found_passing
219 0 0 if $header->key ne 'spf'
225 0 0 unless $this_mailfrom
240 0 0 if (my $error = $@)
251 0 0 unless $self->is_handler_loaded('DKIM')
254 0 0 unless $aar
264 0 0 if scalar @{$result->search({'isa', 'subentry', 'key', 'x-arc-domain'})->children;} > 0
269 0 0 unless ($entry_domain)
273 0 0 if ($entry_domain)
277 0 0 unless $entry_domain
287 0 0 if $header->key ne 'dkim'
293 0 0 unless $this_domain
296 0 0 if $header->value eq 'pass'
301 0 0 if $found_passing
306 0 0 if $header->key ne 'dkim'
312 0 0 unless $this_domain
327 0 0 if (my $error = $@)
339 0 0 unless $aar
348 0 0 if scalar @{$result->search({'isa', 'subentry', 'key', 'x-arc-domain'})->children;} > 0
356 0 0 if (my $error = $@)
369 0 0 if $self->{'arc_result'} ne 'pass'
375 0 0 if ($self->is_domain_trusted($signature_domain)) { }
385 0 0 if (scalar keys %$trusted_aar == 0)
394 0 0 if $self->{'arc_result'} ne 'pass'
397 0 0 unless $self->is_domain_trusted($signature_domain)
406 0 0 unless $aar
408 0 0 unless $first_instance
413 0 0 if (my $error = $@)
417 0 0 if $ip
420 0 0 if (my $error = $@)
431 0 0 unless $trusted_aar
434 0 0 if (scalar @{$found->children;})
463 0 0 if (lc $header eq 'arc-authentication-results')
472 0 0 if (lc $header eq 'arc-seal')
476 0 0 if (lc $header eq 'arc-message-signature')
489 0 0 if ($config->{'arcseal_domain'} and $config->{'arcseal_selector'} and $config->{'arcseal_key'} || $config->{'arcseal_keyfile'})
496 0 0 unless ($self->{'has_arc'})
499 0 0 unless ($config->{'hide_none'})
505 0 0 unless $self->{'has_arcseal'}
512 0 0 if ($config->{'no_strict'})
521 0 0 if (my $error = $@)
528 0 0 unless $self->{'has_arcseal'}
538 0 0 if (my $error = $@)
545 0 0 unless $self->{'has_arcseal'}
555 0 0 if ($self->{'carry'} ne '') { }
563 0 0 if (substr($arc_chunk, -1) eq "\r")
569 0 0 if $self->{'has_arcseal'}
571 0 0 if ($self->{'has_arc'} and not $self->{'failmode'})
576 0 0 if (my $error = $@)
583 0 0 unless $self->{'has_arcseal'}
592 0 0 if ($self->is_handler_loaded('DKIM'))
602 0 0 if $self->{'carry'} and $self->{'has_arcseal'}
605 0 0 unless $self->{'has_arc'}
606 0 0 if $self->{'failmode'}
628 0 0 ref $signature eq 'Mail::DKIM::ARC::MessageSignature' ? :
0 0 ref $signature eq 'Mail::DKIM::ARC::Seal' ? :
640 0 0 if (@items)
646 0 0 if (my $error = $@)
660 0 0 if (my $error = $@)
694 0 0 if ($error =~ /^DNS error: query timed out/ or $error =~ /^DNS query timeout/) { }
0 0 elsif ($error =~ /^DNS error: SERVFAIL/) { }
0 0 elsif ($error =~ /^no domain to fetch policy for$/ or $error =~ /^policy syntax error$/ or $error =~ /^empty domain label/ or $error =~ /^invalid name /) { }
741 0 0 unless $self->{'has_arcseal'}
747 0 0 if ($config->{'arcseal_keyfile'}) { }
767 0 0 unless $handler->{'pre_headers'}
776 0 0 unless $self->{'headers'}
781 0 0 unless $handler->{'add_headers'}
813 0 0 if ($header_line =~ /^\s/) { }
820 0 0 if ($current_header ne '')
829 0 0 if ($current_header ne '')
839 0 0 if (my $error = $@)