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
363 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
694 37 0 0 $user and $group
850 37 0 0 $config->{'patch_net_server'} and scalar @ports == 1

or 2 conditions

line l !l condition
279 0 3 $config->{'dequeue_timeout'} // 300
357 0 81 $3 || ''
400 1 0 $self->{'handler'}{'_Handler'}{'exit_on_close_error'} // "no reason given"
435 0 1 $config->{'errors_to'} || (return)
436 0 0 $config->{'errors_from'} || (return)
437 0 0 $config->{'errors_headers'} || {}
453 0 0 eval {
454 0 0 eval {
455 0 0 eval {
456 0 0 eval {
457 0 0 eval {
458 0 0 eval {
484 0 0 $config->{'errors_to'} || (return)
485 0 0 $config->{'errors_from'} || (return)
486 0 0 $config->{'errors_headers'} || {}
497 0 0 eval {
498 0 0 eval {
499 0 0 eval {
500 0 0 eval {
501 0 0 eval {
502 0 0 eval {
532 0 0 $pid_file || (return undef)
642 37 0 $config->{'connection'} || die('No connection details given')
646 37 0 $config->{'listen_backlog'} || 20
647 37 0 $config->{'max_children'} || 100
648 37 0 $config->{'max_requests_per_child'} || 200
649 37 0 $config->{'min_children'} || 20
650 37 0 $config->{'max_spare_children'} || 20
651 37 0 $config->{'min_spare_children'} || 10
705 0 0 $config->{'error_log'} || die("Could not create error log: $!\n")
741 0 37 $3 || ''
789 0 37 $3 || ''
835 0 0 $config->{'metric_host'} || '127.0.0.1'
856 0 37 $config->{'max_dequeue'} // 5
857 0 37 $config->{'check_for_dequeue'} // 60

or 3 conditions

line l !l&&r !l&&!r condition
452 0 0 0 $process->pid == $ppid or $process->ppid == $ppid
496 0 0 0 $process->pid == $Mail::Milter::Authentication::PID or $process->ppid == $Mail::Milter::Authentication::PID
589 0 0 0 $command eq "restart" or $command eq "start"
590 0 0 0 get_valid_pid($pid_file) || find_process()
600 0 0 0 get_valid_pid($pid_file) || find_process()
615 0 0 0 get_valid_pid($pid_file) || find_process()
1107 0 0 0 $self->{'config'} || get_config()
1125 1 0 0 $self->{'config'} || get_config()
1135 124 0 0 $self->{'config'} || get_config()
1145 5516 2294 0 $self->{'config'} || get_config()