Branch Coverage

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


line true false branch
35 0 9 if @missing
37 0 9 unless (ref($opts{'out'})->can('write'))
75 9 18 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 22 if $self->{'_closed'}
229 2 4 if ($type eq 'close') { }
4 0 elsif (my $handler_cr = $self->can("on_$type")) { }
230 2 0 unless ($self->{'_sent_close_frame'})
233 1 1 if ($code > 4999)
248 0 2 if ($self->{'_received_close_frame'}) { }
255 0 2 unless ($self->{'_no_die_on_close'})