Condition Coverage

blib/lib/Mail/Milter/Authentication/Handler.pm
Criterion Covered Total %
condition 56 89 62.9


and 3 conditions

line !l l&&!r l&&r condition
395 8 4 4 $helo_host and exists $mapped_to->{'helo_map'}
4 2 2 $helo_host and exists $mapped_to->{'helo_map'} and exists $mapped_to->{'helo_map'}{$helo_host}
690 1577 0 0 $header eq "X-Authentication-Milter-Error" and $value eq "Generated Error Report"
1237 0 0 0 $config->{'dns_resolvers'} and @{$config->{'dns_resolvers'}}
1310 0 0 3 $rcode =~ /^[5]\d\d$/u && $xcode =~ /^[5]\.\d+\.\d+$/u
1329 0 0 9 $rcode =~ /^[4]\d\d$/u && $xcode =~ /^[4]\.\d+\.\d+$/u
1749 1202 232 5 $Type == 2 and defined $Email
234 1178 22 $Type == 1 and defined $Email
1771 850 33 0 $i + 1 < scalar @Tokens and $Types[$i + 1] == 2
1854 234 0 20 exists $config->{'authserv_id'} and $config->{'authserv_id'}
1877 545 12920 26885 $priority == 7 and not $config->{'debug'}
1938 528 12670 0 $priority eq "debug" and not $config->{'debug'}
2120 238 0 0 $config->{'extended_log'} and not $config->{'legacy_log'}

or 2 conditions

line l !l condition
41 234 0 ${ref($self) . "::VERSION";} // "unknown"
230 48 0 $exception->{'Type'} || 'Unknown'
386 16 248 $ip_object->overlaps($map_obj) || 0
1234 0 0 $config->{'dns_timeout'} || 8
1235 0 0 $config->{'dns_timeout'} || 8
1236 0 0 $config->{'dns_retry'} || 2
1383 29286 30832 $top_handler->{'symbols'} || {}
1867 17974 22376 $self->get_symbol('i') || '--'
1904 13465 0 $key || ''
11109 2356 $value || ''
2025 75 183 $self->get_symbol('i') || '--'
2154 0 598 $config->{'auth_header_name'} // "Authentication-Results"
2165 0 139 $config->{'auth_header_name'} // "Authentication-Results"

or 3 conditions

line l !l&&r !l&&!r condition
387 12 0 252 $is_overlap == $Mail::Milter::Authentication::Handler::IP_A_IN_B_OVERLAP or $is_overlap == $Mail::Milter::Authentication::Handler::IP_B_IN_A_OVERLAP
12 0 252 $is_overlap == $Mail::Milter::Authentication::Handler::IP_A_IN_B_OVERLAP or $is_overlap == $Mail::Milter::Authentication::Handler::IP_B_IN_A_OVERLAP or $is_overlap == $Mail::Milter::Authentication::Handler::IP_PARTIAL_OVERLAP
0 4 248 $is_overlap == $Mail::Milter::Authentication::Handler::IP_A_IN_B_OVERLAP or $is_overlap == $Mail::Milter::Authentication::Handler::IP_B_IN_A_OVERLAP or $is_overlap == $Mail::Milter::Authentication::Handler::IP_PARTIAL_OVERLAP or $is_overlap == $Mail::Milter::Authentication::Handler::IP_IDENTICAL
1310 0 0 3 not $rcode =~ /^[5]\d\d$/u && $xcode =~ /^[5]\.\d+\.\d+$/u or substr($rcode, 0, 1) ne substr($xcode, 0, 1)
1329 0 0 9 not $rcode =~ /^[4]\d\d$/u && $xcode =~ /^[4]\.\d+\.\d+$/u or substr($rcode, 0, 1) ne substr($xcode, 0, 1)
1749 28 5 1434 $Type == 0 or $Type == 2 and defined $Email
5 22 1412 $Type == 0 or $Type == 2 and defined $Email or $Type == 1 and defined $Email
1928 587 603 0 $self->get_symbol('i') || 'NOQUEUE.' . substr(uc md5_hex("Authentication Milter Client $Mail::Milter::Authentication::Handler::PID " . time . rand(100)), -11)