Condition Coverage

blib/lib/Mojo/Transaction/WebSocket.pm
Criterion Covered Total %
condition 20 28 71.4


and 2 conditions

line l !l condition
130 0 2 $self->finish(1009) and last

and 3 conditions

line !l l&&!r l&&r condition
83 151 0 6 $self->compressed && $frame->[1]
93 150 0 6 $self->compressed and $self->{'pmc'}
140 311 371 201 not length $self->{'write'} and $self->{'closing'}
148 0 3 0 $self->compressed(1) and $self->res->headers->sec_websocket_extensions("permessage-deflate")

or 2 conditions

line l !l condition
54 24 130 $close->[0] //= 1005
139 308 575 $self->{'write'} //= ""
148 3 17 $self->req->headers->sec_websocket_extensions // ""
155 5 1 $self->req->headers->sec_websocket_protocol // ""

or 3 conditions

line l !l&&r !l&&!r condition
29 1 7 0 $self->{'deflate'} ||= "Compress::Raw::Zlib::Deflate"->new("AppendOutput", 1, "MemLevel", 8, "WindowBits", -15)
95 0 6 0 $self->{'inflate'} ||= "Compress::Raw::Zlib::Inflate"->new("Bufsize", $max, "LimitOutput", 1, "WindowBits", -15)