Branch Coverage

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


line true false branch
104 0 36 unless (ref($reader)->can('read'))
128 6 65925 unless ($first2)
129 2 4 defined $first2 ? :
138 65549 115 $len == 127 ? :
261 65664 $len == 126 ? :
142 65810 115 if ($len_len) { }
145 10 65800 unless ($len_buf)
147 0 10 defined $len_buf ? :
150 259 65541 if ($len_len == 2) { }
164 76 65839 if ($mask_size) { }
166 4 72 unless ($mask_buf)
168 0 4 defined $mask_buf ? :
184 0 0 unless ($append_ok)
186 0 0 defined $append_ok ? :
191 65903 8 if ($long)
193 65806 97 unless ($append_ok)
195 0 65806 defined $append_ok ? :
205 42 0 if (my $cr = $self->can("OPCODE_CLASS_$opcode")) { }
214 8 34 unless $class->can('new')
232 66101 131619 if (length $self->{'_partial_frame'} < $length)
236 65824 277 if (not defined $read) { }
2 275 elsif (not length $read) { }
260 65806 97 unless defined $cur_buf
262 0 97 unless length $cur_buf
266 97 0 if length($$buf_sr) - $start_buf_len >= $length