Branch Coverage

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


line true false branch
46 0 0 unless (defined $config->{$key})
59 0 0 unless (defined $config->{$key})
78 0 0 if @_
80 0 0 unless (defined $server->{'config_file'})
98 0 0 if ($cmdline->{'help'})
102 0 0 if (defined $cmdline->{'config'} and $cmdline->{'config'} ne '')
105 0 0 unless (-f $server->{'config_file'})
111 0 0 unless (defined $server->{'log_level'})
114 0 0 unless (defined $server->{'log_file'} or $cmdline->{'foreground'})
122 0 0 unless (defined $server->{'port'})
168 0 0 if (defined $config->{'Connection'})
174 0 0 unless (defined $config->{'VirtualHost'})
186 0 0 if ($cmdline->{'dump_config'})
193 0 0 if ($cmdline->{'foreground'})
197 0 0 if ($cmdline->{'loglevel'})
202 0 0 if ($cmdline->{'cron'} and not $cmdline->{'cron'} =~ /^\s*$/)
242 0 0 if (defined $self->{'session_cache_config'} and ref $self->{'session_cache_config'} eq 'HASH')
255 0 0 if (defined $self->{'session_cache'})
270 0 0 if ($is_socket) { }
271 0 0 'Net::Server'->VERSION >= 2 ? :
284 0 0 if ($self->{'vhost_by_policy_context'} and defined $policy_context and $policy_context ne '')
289 0 0 if ($policy_context eq $vhost->name)
296 0 0 unless (defined $vhost)
304 0 0 if ($self->{'server'}{'log_level'} and $self->{'server'}{'log_level'} >= $level)
345 0 0 if ($self->_is_loglevel(4))
350 0 0 if ($self->_is_loglevel(4))
362 0 0 defined $result->last_match ? :
365 0 0 if ($@)
367 0 0 if (defined $s)
371 0 0 if (defined $error)
396 0 0 if ($@ =~ /Keepalive connection timeout/) { }
0 0 elsif ($@ =~ /connection closed by peer/) { }
0 0 elsif ($@) { }
413 0 0 if ($@ =~ /Request timeout!/) { }
0 0 elsif ($@) { }
421 0 0 if ($self->_is_loglevel(4))