Branch Coverage

blib/lib/Net/WebSocket/Endpoint.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
32 0 8 if @missing
34 0 8 unless (ref($opts{'out'})->can('write'))
45 16 16 defined $opts{$_} ? :
65 20 1 if ($_msg_frame = $self->{'_parser'}->get_next_frame)
66 5 15 if ($_msg_frame->is_control) { }
70 0 15 if ($self->{'_on_data_frame'})
78 6 9 if ($_msg_frame->get_type eq 'continuation') { }
1 8 elsif (@{$self->{'_fragments'};}) { }
79 1 5 unless (@{$self->{'_fragments'};})
87 7 6 if ($_msg_frame->get_fin) { }
101 1 11 defined $_msg_frame ? :
111 2 0 unless $frame_class->can('new')
126 1 9 if ($ping_counter == $self->{'_max_pings'})
171 1 1 $self->{'_sent_close_frame'} ? :
266 0 21 if $self->{'_closed'}
276 1 4 if ($type eq 'close') { }
4 0 elsif (my $handler_cr = $self->can("on_$type")) { }
277 1 0 unless ($self->{'_sent_close_frame'})
289 0 1 if ($self->{'_received_close_frame'}) { }
296 0 1 unless ($self->{'_no_die_on_close'})