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'})
161 1 1 $self->{'_sent_close_frame'} ? :
218 0 22 if $self->{'_closed'}
228 2 4 if ($type eq 'close') { }
4 0 elsif (my $handler_cr = $self->can("on_$type")) { }
229 2 0 unless ($self->{'_sent_close_frame'})
232 1 1 if ($code > 4999)
247 0 2 if ($self->{'_received_close_frame'}) { }
254 0 2 unless ($self->{'_no_die_on_close'})