Condition Coverage

blib/lib/POE/Component/Server/IRC/Backend.pm
Criterion Covered Total %
condition 40 104 38.4


and 3 conditions

line !l l&&!r l&&r condition
58 170 0 12 $args{'sslify_options'} and ref $args{'sslify_options'} eq "ARRAY"
211 497 13 15 $self->{'got_ssl'} and $listener->{'usessl'}
251 0 524 1 $listener->{'auth'} && $self->{'auth'}
336 178 0 0 defined $args{'auth'} and $args{'auth'} eq 0
337 178 0 0 defined $args{'antiflood'} and $args{'antiflood'} eq 0
440 0 0 3 $remoteaddress and $remoteport
481 2 0 1 $self->{'got_ssl'} and $cntr->{'usessl'}
535 0 0 0 $wheel_id and $self->connection_exists($wheel_id)
0 0 0 $wheel_id and $self->connection_exists($wheel_id) and $input
682 230 0 12465 $output and ref $output eq "HASH"
763 0 0 240 $wheel_id and $self->connection_exists($wheel_id)
770 0 0 487 $wheel_id and $self->connection_exists($wheel_id)
800 0 79 17394 $wheel_id and defined $self->{'wheels'}{$wheel_id}
806 0 0 484 $wheel_id and defined $self->{'wheels'}{$wheel_id}
820 0 0 12 $wheel_id and defined $self->{'wheels'}{$wheel_id}
834 0 0 0 $wheel_id and defined $self->{'wheels'}{$wheel_id}
840 0 0 2 $wheel_id and defined $self->{'wheels'}{$wheel_id}
913 11 0 0 eval { do { $self->{'denials'}{$mask}{'blk'}->isa("Net::Netmask") } } and $self->{'denials'}{$mask}{'blk'}->match($ipaddr)
928 0 0 0 $self->{'exemptions'}{$mask}->isa("Net::Netmask") and $self->{'exemptions'}{$mask}->match($ipaddr)

or 2 conditions

line l !l condition
295 29 0 shift() || (return)
329 0 178 $args{'bindaddr'} || '0.0.0.0'
330 0 178 $args{'port'} || 0
331 0 178 $args{'idle'} || 180
419 0 10 shift() || (return)
442 0 3 $args{'idle'} || 180
764 240 0 $string || 'Client Quit'
777 252 235 $errstr || 'Remote host closed the connection'
846 0 0 shift() || (return)
853 6 0 shift() || (return)
854 6 0 shift() || 'Denied'
874 5 0 shift() || (return)
882 0 0 shift() || (return)
901 0 0 shift() || (return)
909 537 0 shift() || (return)
926 537 0 shift() || (return)

or 3 conditions

line l !l&&r !l&&!r condition
119 0 0 3982 {"add_connector" => "_add_connector","add_listener" => "_add_listener","del_listener" => "_del_listener","send_output" => "_send_output","shutdown" => "_shutdown","syndicator_started" => "_start"}->{$event} or &first(sub { $event eq $_; } , @{["_accept_connection","_accept_failed","_conn_alarm","_conn_input","_conn_error","_conn_flushed","_event_dispatcher","_sock_failed","_sock_up","_sock_ssl"];})
127 0 0 724 {"add_connector" => "_add_connector","add_listener" => "_add_listener","del_listener" => "_del_listener","send_output" => "_send_output","shutdown" => "_shutdown","syndicator_started" => "_start"}->{$event} or &first(sub { $event eq $_; } , @{["_accept_connection","_accept_failed","_conn_alarm","_conn_input","_conn_error","_conn_flushed","_event_dispatcher","_sock_failed","_sock_up","_sock_ssl"];})
541 0 0 0 not $self->{'wheels'}{$wheel_id}{'timer'} or $self->{'wheels'}{$wheel_id}{'timer'} < $current_time
574 6 0 235 $errstr || $self->{'wheels'}{$wheel_id}{'disconnecting'}
664 0 0 0 not $self->connection_exists($wheel_id) or $self->{'wheels'}{$wheel_id}{'flooded'}