Branch Coverage

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


line true false branch
104 0 40 unless (ref($reader)->can("read"))
128 7 65929 unless ($first2)
129 3 4 defined $first2 ? :
138 65549 119 $len == 127 ? :
261 65668 $len == 126 ? :
142 65810 119 if ($len_len) { }
145 10 65800 unless ($len_buf)
147 0 10 defined $len_buf ? :
150 259 65541 if ($len_len == 2) { }
164 72 65847 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 10 if ($long)
193 65806 99 unless ($append_ok)
195 0 65806 defined $append_ok ? :
205 46 0 if (my $cr = $self->can("OPCODE_CLASS_$opcode")) { }
214 8 38 unless $class->can("new")
234 66104 131619 if (length $self->{'_partial_frame'} < $length)
238 65824 280 if (not defined $read) { }
3 277 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