Condition Coverage

blib/lib/Mail/Milter/Authentication.pm
Criterion Covered Total %
condition 30 130 23.0


and 3 conditions

line !l l&&!r l&&r condition
364 81 0 0 defined $config->{'metric_port'} and $self->get_client_proto eq "TCP"
81 0 0 defined $config->{'metric_port'} and $self->get_client_proto eq "TCP" and $self->get_client_port eq $config->{'metric_port'}
0 81 0 defined $config->{'metric_connection'} and $metric_type eq "inet"
81 0 0 defined $config->{'metric_connection'} and $metric_type eq "inet" and $self->get_client_proto eq "TCP"
81 0 0 defined $config->{'metric_connection'} and $metric_type eq "inet" and $self->get_client_proto eq "TCP" and $self->get_client_port eq $metric_path
0 0 81 defined $config->{'metric_connection'} and $metric_type eq "unix"
0 0 81 defined $config->{'metric_connection'} and $metric_type eq "unix" and $self->get_client_proto eq "UNIX"
0 70 11 defined $config->{'metric_connection'} and $metric_type eq "unix" and $self->get_client_proto eq "UNIX" and $self->get_client_path eq $metric_path
695 37 0 0 $user and $group
851 37 0 0 $config->{'patch_net_server'} and scalar @ports == 1

or 2 conditions

line l !l condition
280 0 3 $config->{'dequeue_timeout'} // 300
358 0 81 $3 || ''
401 1 0 $self->{'handler'}{'_Handler'}{'exit_on_close_error'} // "no reason given"
436 0 1 $config->{'errors_to'} || (return)
437 0 0 $config->{'errors_from'} || (return)
438 0 0 $config->{'errors_headers'} || {}
454 0 0 eval {
455 0 0 eval {
456 0 0 eval {
457 0 0 eval {
458 0 0 eval {
459 0 0 eval {
485 0 0 $config->{'errors_to'} || (return)
486 0 0 $config->{'errors_from'} || (return)
487 0 0 $config->{'errors_headers'} || {}
498 0 0 eval {
499 0 0 eval {
500 0 0 eval {
501 0 0 eval {
502 0 0 eval {
503 0 0 eval {
533 0 0 $pid_file || (return undef)
643 37 0 $config->{'connection'} || die('No connection details given')
647 37 0 $config->{'listen_backlog'} || 20
648 37 0 $config->{'max_children'} || 100
649 37 0 $config->{'max_requests_per_child'} || 200
650 37 0 $config->{'min_children'} || 20
651 37 0 $config->{'max_spare_children'} || 20
652 37 0 $config->{'min_spare_children'} || 10
706 0 0 $config->{'error_log'} || die("Could not create error log: $!\n")
742 0 37 $3 || ''
790 0 37 $3 || ''
836 0 0 $config->{'metric_host'} || '127.0.0.1'
857 0 37 $config->{'max_dequeue'} // 5
858 0 37 $config->{'check_for_dequeue'} // 60

or 3 conditions

line l !l&&r !l&&!r condition
453 0 0 0 $process->pid == $ppid or $process->ppid == $ppid
497 0 0 0 $process->pid == $Mail::Milter::Authentication::PID or $process->ppid == $Mail::Milter::Authentication::PID
590 0 0 0 $command eq "restart" or $command eq "start"
591 0 0 0 get_valid_pid($pid_file) || find_process()
601 0 0 0 get_valid_pid($pid_file) || find_process()
616 0 0 0 get_valid_pid($pid_file) || find_process()
1108 0 0 0 $self->{'config'} || get_config()
1126 1 0 0 $self->{'config'} || get_config()
1136 127 0 0 $self->{'config'} || get_config()
1146 5665 2294 0 $self->{'config'} || get_config()