Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
180 0 0 0 ($args{'compress'} // 1) && $$compression_options{'compress'} && $COMPRESSIBLE_OPCODE{$opcode}
251 0 0 0 defined $key and length $key
404 0 0 0 $$compression_options{'compress'} && $rsv[0]
408 0 0 0 $rsv[0] and not $$compression_options{"compress"}
442 0 0 0 defined $maximum_payload_size and $len + length($data) > $maximum_payload_size

or 2 conditions

line l !l condition
118 0 0 $on_handshake_failure //= sub : method { die sprintf("Too few arguments for subroutine at %s line %d.\n", (caller)[1, 2]) unless @_ >= 3; XXX; eval { do { my $self = $_[0]; XXX; my $stream = $_[1]; my $error = $_[2]; XXX } }; XXX; }
179 0 0 $OPCODE_BY_NAME{$args{"type"}} // die("invalid frame type")
191 0 0 $original || 1
215 0 0 $$compression_options{'server_bits'} || 15
229 0 0 $$compression_options{'client_bits'} || 15
499 0 0 $args{"code"} // 0
0 0 $args{"reason"} // ""

or 3 conditions

line l !l&&r !l&&!r condition
119 0 0 0 $closed //= $self->loop->new_future
120 0 0 0 $on_handshake_complete //= $self->loop->new_future
215 0 0 0 $deflation //= &deflateInit("-WindowBits", -($$compression_options{'server_bits'} || 15))
229 0 0 0 $inflation //= &inflateInit("-WindowBits", -($$compression_options{'client_bits'} || 15))
233 0 0 0 $status == Z_STREAM_END() or $status == Z_OK()
404 0 0 0 $compressed //= $$compression_options{'compress'} && $rsv[0]
413 0 0 0 $type //= $opcode & 15
427 0 0 0 $len < 65535 or $len & 2147483648