Branch Coverage

blib/lib/Net/WebSocket/Parser.pm
Criterion Covered Total %
branch 33 38 86.8


line true false branch
89 0 21 unless (ref($reader)->can('read'))
103 21 65887 unless (exists $self->{'_partial_frame'})
111 5 65903 unless my $first2 = $self->_read_with_buffer(2)
130 65545 99 $len == 127 ? :
259 65644 $len == 126 ? :
135 65804 99 if ($len_len) { }
136 10 65794 unless ($len_buf = $self->_read_with_buffer($len_len))
141 257 65537 if ($len_len == 2) { }
153 71 65822 if ($mask_size) { }
154 4 67 unless ($mask_buf = $self->_read_with_buffer($mask_size))
171 0 0 unless ($self->_append_chunk(1073741824, \$payload))
178 65881 8 if ($long)
179 65806 75 unless ($self->_append_chunk($long, \$payload))
191 25 0 if (my $cr = $self->can("OPCODE_CLASS_$opcode")) { }
200 6 19 unless $class->can('new')
215 66045 131619 if (length $self->{'_partial_frame'} < $length)
219 65824 221 unless (defined $read)
240 65806 75 unless defined $cur_buf
244 75 0 if length($$buf_sr) - $start_buf_len >= $length