Branch Coverage

blib/lib/Mail/Milter/Authentication/Handler/Sanitize.pm
Criterion Covered Total %
branch 22 32 68.7


line true false branch
33 0 8 unless defined $check_hostname
38 8 0 if (exists $config->{'hosts_to_remove'})
40 8 0 if (substr(lc $check_hostname, 0 - length($remove_hostname)) eq lc $remove_hostname)
49 0 0 if (substr(lc $check_hostname, 0 - length($check_for)) eq lc $check_for)
61 2 6 unless (exists $self->{'remove_auth_headers'})
95 30 629 if $self->is_trusted_ip_address
96 0 629 if lc $config->{'remove_headers'} eq 'no'
99 8 621 if (lc $header eq 'authentication-results')
100 2 6 unless (exists $self->{'auth_result_header_index'})
107 8 0 if ($self->is_hostname_mine($domain_part))
109 8 0 if (lc $config->{'remove_headers'} ne 'silent')
124 625 4 if lc $remove_header ne lc $header
128 0 4 unless ($self->{'header_hash'}{lc $header}{'silent'})
146 0 60 if lc $config->{'remove_headers'} eq 'no'
148 2 58 if (exists $self->{'remove_auth_headers'})
157 2 58 if ($max_index)