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'}
335 178 0 0 defined $args{'auth'} and $args{'auth'} eq '0'
336 178 0 0 defined $args{'antiflood'} and $args{'antiflood'} eq '0'
439 0 0 3 $remoteaddress and $remoteport
480 2 0 1 $self->{'got_ssl'} and $cntr->{'usessl'}
534 0 0 0 $wheel_id and $self->connection_exists($wheel_id)
0 0 0 $wheel_id and $self->connection_exists($wheel_id) and $input
681 230 0 12447 $output and ref $output eq 'HASH'
762 0 0 240 $wheel_id and $self->connection_exists($wheel_id)
769 0 0 487 $wheel_id and $self->connection_exists($wheel_id)
799 0 79 17392 $wheel_id and defined $self->{'wheels'}{$wheel_id}
805 0 0 484 $wheel_id and defined $self->{'wheels'}{$wheel_id}
819 0 0 12 $wheel_id and defined $self->{'wheels'}{$wheel_id}
833 0 0 0 $wheel_id and defined $self->{'wheels'}{$wheel_id}
839 0 0 2 $wheel_id and defined $self->{'wheels'}{$wheel_id}
912 11 0 0 eval { do { $self->{'denials'}{$mask}{'blk'}->isa('Net::Netmask') } } and $self->{'denials'}{$mask}{'blk'}->match($ipaddr)
927 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)
328 0 178 $args{'bindaddr'} || '0.0.0.0'
329 0 178 $args{'port'} || 0
330 0 178 $args{'idle'} || 180
418 0 10 shift() || (return)
441 0 3 $args{'idle'} || 180
763 240 0 $string || 'Client Quit'
776 251 236 $errstr || 'Remote host closed the connection'
845 0 0 shift() || (return)
852 6 0 shift() || (return)
853 6 0 shift() || 'Denied'
873 5 0 shift() || (return)
881 0 0 shift() || (return)
900 0 0 shift() || (return)
908 537 0 shift() || (return)
925 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'];})
540 0 0 0 not $self->{'wheels'}{$wheel_id}{'timer'} or $self->{'wheels'}{$wheel_id}{'timer'} < $current_time
573 5 0 236 $errstr || $self->{'wheels'}{$wheel_id}{'disconnecting'}
663 0 0 0 not $self->connection_exists($wheel_id) or $self->{'wheels'}{$wheel_id}{'flooded'}