Branch Coverage

blib/lib/AnyEvent/PocketIO/Client.pm
Criterion Covered Total %
branch 23 42 54.7


line true false branch
52 0 10 unless my($fh) = @_
75 0 15 unless length $_[0]->rbuf
76 2 13 if $read
82 2 11 if ($code and $code != 200)
92 4 7 unless (defined $line)
121 0 1 if $cb and ref $cb ne 'CODE'
122 0 1 if exists $RESERVED_EVENT{$name}
124 1 0 if ($self->is_opened) { }
136 18 21 if (@_ > 2)
147 1 4 unless $self->is_opened
158 0 4 unless ($self->is_opened)
167 0 0 unless ($self->is_opened)
185 0 7 if @_ > 1
195 0 7 if ($trans and ref $trans eq 'CODE')
199 0 7 unless ($sid)
201 0 0 $cb ? :
210 0 0 $cb ? :
0 7 unless my($fh) = @_
225 1 0 $cb ? :
250 15 0 unless $conn->socket->on($name)
265 0 7 if ($@)