Branch Coverage

blib/lib/Test/POE/Server/TCP.pm
Criterion Covered Total %
branch 63 116 54.3


line true false branch
18 0 12 if (not $GOT_SOCKET6)
32 11 1 unless defined $self->{'_prefix'}
33 1 11 unless $self->{'_prefix'} =~ /\_$/
34 6 6 ref $options eq 'HASH' ? :
58 1 0 if $_[0]{'listener'}
59 1 0 if $_[0]{'listener6'}
63 1 0 if $_[0]{'listener'}
64 1 0 if $_[0]{'listener6'}
68 0 11 unless $_[0]{'listener'}
78 0 0 unless $_[0]{'listener6'}
89 0 86 unless $wheel_id and defined $self->{'clients'}{$wheel_id}
101 0 12 if ($self->{'alias'}) { }
107 11 1 if ($kernel != $sender)
128 0 12 if $self->{'listener'}
132 10 2 defined $self->{'address'} ? :
10 2 defined $self->{'port'} ? :
141 0 12 unless $GOT_SOCKET6
145 10 2 defined $self->{'port'} ? :
177 0 12 unless $wheel
197 0 2 unless $self->_conn_exists($id)
200 1 1 if wantarray
207 0 1 unless $self->_conn_exists($id)
213 1 11 if (defined $client_infilter or defined $client_outfilter) { }
0 11 elsif (defined $client_filter) { }
218 0 0 if (defined $client_filter)
237 0 2 if (ref $filter eq 'ARRAY') { }
2 0 elsif (ref $filter) { }
240 0 0 if (_test_filter($filter)) { }
250 0 0 if (_test_filter($filter)) { }
266 0 0 if (not $eval and $@)
279 0 0 if $operation eq 'listen'
287 0 0 if $operation eq 'listen'
299 0 5 unless $self->_conn_exists($id)
311 0 4 unless $self->_conn_exists($id)
319 0 18 unless $self->_conn_exists($id)
327 0 2 unless $self->_conn_exists($id)
336 0 29 unless $self->_conn_exists($id)
337 6 23 if ($self->{'clients'}{$id}{'BUFFER'})
339 2 4 unless ($item)
347 18 5 unless ($self->{'clients'}{$id}{'quit'})
358 0 0 unless $self->_conn_exists($id)
371 14 0 unless $self->{'alias'}
381 0 1 unless (@events)
389 1 0 unless /^_/
392 1 0 unless ($self->{'sessions'}{$sender_id}{'refcnt'}++ or $session == $sender)
405 0 2 unless (@events)
419 2 0 unless /^_/
421 0 2 unless ($blah)
425 2 0 if (--$self->{'sessions'}{$sender_id}{'refcnt'} <= 0)
427 2 0 unless ($session == $sender)
439 10 0 if (--$self->{'sessions'}{$session_id}{'refcnt'} <= 0)
441 10 0 unless $session_id eq $testd_id
472 0 25 unless $self->_conn_exists($id)
473 0 25 unless defined $output
475 2 23 if (ref $output eq 'ARRAY')
478 2 0 if scalar @{$temp;}
479 2 0 if defined $first
494 0 1 unless defined $output