Branch Coverage

blib/lib/Net/WebSocket/Endpoint.pm
Criterion Covered Total %
branch 18 26 69.2


line true false branch
35 0 10 if @missing
37 0 10 unless (ref($opts{'out'})->can("write"))
75 10 20 defined $opts{$_} ? :
101 2 0 unless $frame_class->can("new")
116 1 9 if ($ping_counter == $self->{'_max_pings'}) { }
162 1 1 $self->{'_sent_close_frame'} ? :
219 0 23 if $self->{'_closed'}
229 3 4 if ($type eq 'close') { }
4 0 elsif (my $handler_cr = $self->can("on_$type")) { }
230 3 0 unless ($self->{'_sent_close_frame'})
233 1 2 if ($code and $code > 4999)
248 0 3 if ($self->{'_received_close_frame'}) { }
255 0 3 unless ($self->{'_no_die_on_close'})