Condition Coverage

blib/lib/Mojo/Transaction/WebSocket.pm
Criterion Covered Total %
condition 21 28 75.0


and 2 conditions

line l !l condition
131 0 3 $self->finish(1009) and last

and 3 conditions

line !l l&&!r l&&r condition
84 163 0 9 $self->compressed && $frame->[1]
94 162 0 9 $self->compressed and $self->{'pmc'}
141 325 404 201 not length $self->{'write'} and $self->{'closing'}
149 0 3 0 $self->compressed(1) and $self->res->headers->sec_websocket_extensions("permessage-deflate")

or 2 conditions

line l !l condition
55 26 130 $close->[0] //= 1005
140 322 608 $self->{'write'} //= ""
149 3 17 $self->req->headers->sec_websocket_extensions // ""
156 5 1 $self->req->headers->sec_websocket_protocol // ""

or 3 conditions

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