Condition Coverage

lib/PAGI/Middleware/WebSocket/Compression.pm
Criterion Covered Total %
condition 8 25 32.0


and 3 conditions

line !l l&&!r l&&r condition
107 1 0 0 $d_status == Compress::Raw::Zlib::Z_OK() and $i_status == Compress::Raw::Zlib::Z_OK()
137 0 0 0 $event->{'type'} eq "websocket.send" and $compression_active
143 0 0 0 defined $data and length $data >= $self->{'min_size'}
174 0 0 0 $event->{'type'} eq "websocket.receive" and $compression_active

or 2 conditions

line l !l condition
58 1 2 $config->{'level'} // 6
59 1 2 $config->{'min_size'} // 128
60 0 3 $config->{'server_no_context_takeover'} // 0
61 0 3 $config->{'client_no_context_takeover'} // 0
222 2 0 $scope->{'headers'} // []

or 3 conditions

line l !l&&r !l&&!r condition
176 0 0 0 $event->{'bytes'} // $event->{'text'}