Branch Coverage

blib/lib/Web/Async/WebSocket/Server/Connection.pm
Criterion Covered Total %
branch 0 102 0.0


line true false branch
102 0 0 if exists $args{'http_version'}
103 0 0 if exists $args{'status'}
104 0 0 if exists $args{'msg'}
105 0 0 if exists $args{'ryu'}
106 0 0 if exists $args{'stream'}
107 0 0 if exists $args{'server'}
108 0 0 if exists $args{'server_name'}
109 0 0 if exists $args{'maximum_payload_size'}
110 0 0 if exists $args{'on_handshake_failure'}
111 0 0 if exists $args{'handshake'}
123 0 0 unless $closed->is_ready
169 0 0 if $closed->is_ready
182 0 0 if $opcode == $OPCODE_BY_NAME{"text"}
185 0 0 if ($compressed)
200 0 0 if ($len < 126) { }
0 0 elsif ($len <= 65535) { }
213 0 0 unless $$compression_options{"server_context"}
215 0 0 unless $deflation //= &deflateInit("-WindowBits", -($$compression_options{'server_bits'} || 15))
219 0 0 unless $status == Z_OK()
221 0 0 unless $status == Z_OK()
227 0 0 unless $$compression_options{"client_context"}
229 0 0 unless $inflation //= &inflateInit("-WindowBits", -($$compression_options{'client_bits'} || 15))
233 0 0 unless $status == Z_STREAM_END() or $status == Z_OK()
241 0 0 unless length $line
251 0 0 unless defined $key and length $key
397 0 0 if $eof
400 0 0 unless $masked
402 0 0 $opcode & 128 ? :
403 0 0 $opcode & $_ ? :
408 0 0 if $rsv[0] and not $$compression_options{"compress"}
412 0 0 if any {$_;} @rsv[1, 2]
417 0 0 unless $OPCODE_BY_CODE{$type}
418 0 0 if ($len == 126) { }
0 0 elsif ($len == 127) { }
420 0 0 if $eof
422 0 0 if $len < 126
425 0 0 if $eof
427 0 0 if $len < 65535 or $len & 2147483648
430 0 0 if ($masked)
432 0 0 if $eof
442 0 0 if defined $maximum_payload_size and $len + length($data) > $maximum_payload_size
444 0 0 if $eof
445 0 0 if ($masked)
453 0 0 if $compressed
455 0 0 if ($type == $OPCODE_BY_NAME{"text"})
456 0 0 unless valid_utf8($data)
467 0 0 if ($OPCODE_BY_CODE{$type} equ "close")
469 0 0 unless valid_utf8($reason)
483 0 0 if $closed->is_ready
485 0 0 if ($server)
490 0 0 if ($stream->is_read_eof)