Condition Coverage

blib/lib/POE/Component/Server/SimpleSMTP.pm
Criterion Covered Total %
condition 43 108 39.8


and 2 conditions

line l !l condition
922 0 1 $item{'rcpt'} and ref $item{'rcpt'} eq 'ARRAY' and scalar @{$item{'rcpt'};}

and 3 conditions

line !l l&&!r l&&r condition
25 7 0 6 $opts{'handlers'} and ref $opts{'handlers'} eq 'ARRAY'
26 12 0 1 $opts{'domains'} and ref $opts{'domains'} eq 'ARRAY'
27 10 0 3 defined $opts{'simple'} and not $opts{'simple'}
28 13 0 0 defined $opts{'handle_connects'} and not $opts{'handle_connects'}
94 2 0 1 $handle and $^O ne 'MSWin32'
125 0 0 409 $wheel_id and defined $self->{'clients'}{$wheel_id}
139 0 0 6 ref $handler and ref $handler eq 'ARRAY'
143 0 0 6 ref $handler->[$count] and ref $handler->[$count] eq 'HASH'
204 13 0 0 $self->{'resolver'} and $self->{'resolver'}->isa('POE::Component::Client::DNS')
284 56 3 5 $input eq '.' and $self->{'simple'}
56 1 2 $input eq '.' and ref $self->{'clients'}{$id}{'buffer'} eq 'ARRAY'
514 0 0 90 $self->_conn_exists($id) and defined $self->{'clients'}{$id}{'wheel'}
531 6 0 0 $self->{'_smtp_clients'} and $self->{'_smtp_clients'} >= $self->{'maxrelay'}
609 0 0 0 $self->{'relay_user'} and $self->{'relay_pass'}
642 0 0 0 $error->{'SMTP_Server_Error'} and $error->{'SMTP_Server_Error'} =~ /^5/
686 0 0 0 $data->{'error'} and $data->{'error'} eq 'NOERROR'
718 7 1 0 $self->{'dnsbl_enable'} and !$self->{'clients'}{$id}{'dnsbl'} || $self->{'clients'}{$id}{'dnsbl'} ne 'NXDOMAIN'
756 10 0 0 $self->{'sender_verify'} and defined $self->{'clients'}{$id}{'fverify'}
806 5 0 0 $self->{'sender_verify'} and defined $self->{'clients'}{$id}{'fverify'}
871 5 0 0 $self->{'sender_verify'} and defined $self->{'clients'}{$id}{'fverify'}
910 0 0 1 ref $_[0] and ref $_[0] eq 'HASH'
0 0 0 ref $_[0] and ref $_[0] eq 'ARRAY'
922 0 0 1 $item{'rcpt'} and ref $item{'rcpt'} eq 'ARRAY'
923 1 0 0 $item{'ts'} and $item{'ts'} =~ /^\d+$/

or 2 conditions

line l !l condition
78 1 0 shift() || (return)
91 3 0 shift() || (return)
117 0 0 shift() || (return)
131 70 0 shift() || (return)
138 6 0 shift() || (return)
266 1 11 $self->{'client_time_out'} || 300
282 1 133 $self->{'client_time_out'} || 300
521 5 0 shift() || (return)
599 0 0 $self->{'time_out'} || 300
613 0 0 $self->{'relay_auth'} || 'PLAIN'
623 0 0 $self->{'time_out'} || 300
794 3 0 shift() || (return)
899 5 0 $email->header('Subject') || ''
902 5 0 $subject || ''

or 3 conditions

line l !l&&r !l&&!r condition
412 0 0 0 $self->{'sessions'}{$sender_id}{'refcnt'}++ or $session == $sender
718 0 0 1 !$self->{'clients'}{$id}{'dnsbl'} || $self->{'clients'}{$id}{'dnsbl'} ne 'NXDOMAIN'