Condition Coverage

blib/lib/POE/Component/Server/SimpleSMTP.pm
Criterion Covered Total %
condition 42 105 40.0


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
28 7 0 6 $opts{'handlers'} and ref $opts{'handlers'} eq 'ARRAY'
29 12 0 1 $opts{'domains'} and ref $opts{'domains'} eq 'ARRAY'
30 10 0 3 defined $opts{'simple'} and not $opts{'simple'}
31 13 0 0 defined $opts{'handle_connects'} and not $opts{'handle_connects'}
97 2 0 1 $handle and $^O ne 'MSWin32'
128 0 0 409 $wheel_id and defined $$self{'clients'}{$wheel_id}
142 0 0 6 ref $handler and ref $handler eq 'ARRAY'
146 0 0 6 ref $$handler[$count] and ref $$handler[$count] eq 'HASH'
206 13 0 0 $$self{'resolver'} and $$self{'resolver'}->isa('POE::Component::Client::DNS')
287 56 3 5 $input eq '.' and $$self{'simple'}
56 1 2 $input eq '.' and ref $$self{'clients'}{$id}{'buffer'} eq 'ARRAY'
517 0 0 90 $self->_conn_exists($id) and defined $$self{'clients'}{$id}{'wheel'}
534 6 0 0 $$self{'_smtp_clients'} and $$self{'_smtp_clients'} >= $$self{'maxrelay'}
612 0 0 0 $$self{'relay_user'} and $$self{'relay_pass'}
645 0 0 0 $$error{'SMTP_Server_Error'} and $$error{'SMTP_Server_Error'} =~ /^5/
689 0 0 0 $$data{'error'} and $$data{'error'} eq 'NOERROR'
717 7 1 0 $$self{'dnsbl_enable'} and !$$self{'clients'}{$id}{'dnsbl'} || $$self{'clients'}{$id}{'dnsbl'} ne 'NXDOMAIN'
751 10 0 0 $$self{'sender_verify'} and defined $$self{'clients'}{$id}{'fverify'}
801 5 0 0 $$self{'sender_verify'} and defined $$self{'clients'}{$id}{'fverify'}
889 0 0 1 ref $_[0] and ref $_[0] eq 'HASH'
0 0 0 ref $_[0] and ref $_[0] eq 'ARRAY'
901 0 0 1 $item{'rcpt'} and ref $item{'rcpt'} eq 'ARRAY'
902 1 0 0 $item{'ts'} and $item{'ts'} =~ /^\d+$/

or 2 conditions

line l !l condition
81 1 0 shift() || (return)
94 3 0 shift() || (return)
120 0 0 shift() || (return)
134 70 0 shift() || (return)
141 6 0 shift() || (return)
269 1 11 $$self{'client_time_out'} || 300
285 1 133 $$self{'client_time_out'} || 300
524 5 0 shift() || (return)
593 0 0 $$self{'time_out'} || 300
613 0 0 $$self{'relay_auth'} || 'PLAIN'
618 0 0 $$self{'time_out'} || 300
789 3 0 shift() || (return)
878 5 0 $email->header('Subject') || ''
881 5 0 $subject || ''

or 3 conditions

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