Branch Coverage

blib/lib/Mail/MtPolicyd.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
45 0 0 unless (defined $config->{$key})
58 0 0 unless (defined $config->{$key})
77 0 0 if @_
79 0 0 unless (defined $server->{'config_file'})
97 0 0 if ($cmdline->{'help'})
101 0 0 if (defined $cmdline->{'config'} and $cmdline->{'config'} ne '')
104 0 0 unless (-f $server->{'config_file'})
110 0 0 unless (defined $server->{'log_level'})
113 0 0 unless (defined $server->{'log_file'} or $cmdline->{'foreground'})
121 0 0 unless (defined $server->{'port'})
167 0 0 if (defined $config->{'Connection'})
173 0 0 unless (defined $config->{'VirtualHost'})
185 0 0 if ($cmdline->{'dump_config'})
192 0 0 if ($cmdline->{'foreground'})
196 0 0 if ($cmdline->{'loglevel'})
201 0 0 if ($cmdline->{'cron'} and not $cmdline->{'cron'} =~ /^\s*$/)
241 0 0 if (defined $self->{'session_cache_config'} and ref $self->{'session_cache_config'} eq 'HASH')
254 0 0 if (defined $self->{'session_cache'})
269 0 0 if ($is_socket) { }
270 0 0 'Net::Server'->VERSION >= 2 ? :
283 0 0 if ($self->{'vhost_by_policy_context'} and defined $policy_context and $policy_context ne '')
288 0 0 if ($policy_context eq $vhost->name)
295 0 0 unless (defined $vhost)
303 0 0 if ($self->{'server'}{'log_level'} and $self->{'server'}{'log_level'} >= $level)
344 0 0 if ($self->_is_loglevel(4))
349 0 0 if ($self->_is_loglevel(4))
361 0 0 defined $result->last_match ? :
364 0 0 if ($@)
366 0 0 if (defined $s)
370 0 0 if (defined $error)
395 0 0 if ($@ =~ /Keepalive connection timeout/) { }
0 0 elsif ($@ =~ /connection closed by peer/) { }
0 0 elsif ($@) { }
412 0 0 if ($@ =~ /Request timeout!/) { }
0 0 elsif ($@) { }
420 0 0 if ($self->_is_loglevel(4))