Condition Coverage

blib/lib/Net/Inspect/L7/HTTP/WebSocket.pm
Criterion Covered Total %
condition 24 55 43.6


and 3 conditions

line !l l&&!r l&&r condition
135 9 1 0 not $size and $clen || $clenhi
0 1 0 not $size and $clen || $clenhi and $eof
164 2 2 6 $data_frame and $current_frame == $data_frame
223 0 2 0 not $clenhi and $clen < 65536

or 2 conditions

line l !l condition
16 1 0 $req->{'fields'}{'sec-websocket-key'} || []
91 0 0 $current_frame->{'mask_offset'} || 0
96 0 0 $current_frame->{'mask_offset'} || 0
101 4 1 $current_frame->{'mask_offset'} || 0
177 0 2 $current_frame->{'mask_offset'} || 0
324 0 0 $err ||= 'non-minimal length representation in websocket frame'
326 0 0 $err ||= 'extensions using reserved flags are not supported'
351 1 7 $self->{'mask_offset'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
45 0 0 1 @$wsa != 1 or $wsa->[0] ne &sha1_base64($wskey->[0] . '258EAFA5-E914-47DA-95CA-C5AB0DC85B11') . '='
76 0 0 5 not $data_frame or $current_frame != $data_frame
105 5 0 0 $clen or $clenhi
135 1 0 0 $clen || $clenhi
159 2 0 8 $clen or $clenhi
245 0 0 4 $clenhi or $clen > 125
253 2 2 0 $ctl_frame ||= 'Net::Inspect::L7::HTTP::WebSocket::_WSFrame'->new
328 0 0 0 $err ||= "no support for opcode $opcode"
349 0 3 8 $data eq '' or not $self->{'mask'}