Branch Coverage

blib/lib/Net/WebSocket/Parser.pm
Criterion Covered Total %
branch 39 50 78.0


line true false branch
104 0 38 unless (ref($reader)->can('read'))
128 7 65927 unless ($first2)
129 3 4 defined $first2 ? :
138 65549 117 $len == 127 ? :
261 65666 $len == 126 ? :
142 65810 117 if ($len_len) { }
145 10 65800 unless ($len_buf)
147 0 10 defined $len_buf ? :
150 259 65541 if ($len_len == 2) { }
164 72 65845 if ($mask_size) { }
166 4 68 unless ($mask_buf)
168 0 4 defined $mask_buf ? :
184 0 0 unless ($append_ok)
186 0 0 defined $append_ok ? :
191 65905 8 if ($long)
193 65806 99 unless ($append_ok)
195 0 65806 defined $append_ok ? :
205 44 0 if (my $cr = $self->can("OPCODE_CLASS_$opcode")) { }
214 8 36 unless $class->can('new')
234 66102 131619 if (length $self->{'_partial_frame'} < $length)
238 65824 278 if (not defined $read) { }
3 275 elsif (not length $read) { }
262 65806 99 unless defined $cur_buf
264 0 99 unless length $cur_buf
268 99 0 if length($$buf_sr) - $start_buf_len >= $length