Branch Coverage

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


line true false branch
87 0 21 unless (ref($reader)->can('read'))
101 21 65887 unless (exists $self->{'_partial_frame'})
109 4 65903 unless my $first2 = $self->_read_with_buffer(2)
128 65545 99 $len == 127 ? :
259 65644 $len == 126 ? :
133 65804 99 if ($len_len) { }
134 10 65794 unless ($len_buf = $self->_read_with_buffer($len_len))
139 257 65537 if ($len_len == 2) { }
151 71 65822 if ($mask_size) { }
152 4 67 unless ($mask_buf = $self->_read_with_buffer($mask_size))
169 0 0 unless ($self->_append_chunk(1073741824, \$payload))
176 65881 8 if ($long)
177 65806 75 unless ($self->_append_chunk($long, \$payload))
189 25 0 if (my $cr = $self->can("OPCODE_CLASS_$opcode")) { }
198 6 19 unless $class->can('new')
213 66045 131619 if (length $self->{'_partial_frame'} < $length)
217 65824 220 unless (defined $read)
238 65806 75 unless defined $cur_buf
242 75 0 if length($$buf_sr) - $start_buf_len >= $length