Branch Coverage

blib/lib/Net/WebSocket/Defragmenter.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
80 22 1 if ($_msg_frame = $self->{'_parser'}->get_next_frame)
81 7 15 if ($_msg_frame->is_control) { }
82 7 0 if ($self->{'_on_control_frame'})
87 0 15 if ($self->{'_on_data_frame'})
95 6 9 if ($_msg_frame->get_type eq 'continuation') { }
1 8 elsif (@{$self->{'_fragments'};}) { }
96 1 5 unless (@{$self->{'_fragments'};})
110 7 6 if ($_msg_frame->get_fin) { }
124 1 13 defined $_msg_frame ? :
130 2 0 if ($self->{'_on_protocol_error'})