Branch Coverage

blib/lib/Protocol/HTTP2/Frame.pm
Criterion Covered Total %
branch 10 22 45.4


line true false branch
52 0 12 if length($$buf_ref) - $buf_offset < 24
54 0 12 index($$buf_ref, "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n", $buf_offset) == -1 ? :
74 136 129 if length($$buf_ref) - $buf_offset < 9
79 0 129 if ($length > $con->dec_setting(5))
85 0 129 if length($$buf_ref) - $buf_offset - 9 - $length < 0
91 129 0 exists $frame_class{$type} ? :
101 0 0 if ($pending_stream_id and $type != 9 || $pending_stream_id != $stream_id)
110 0 129 unless (exists $frame_class{$type})
123 0 67 if ($stream_id and not $con->stream($stream_id) and not $con->new_peer_stream($stream_id))
127 0 0 $con->error ? :
131 0 129 unless defined $decoder{$type}->($con, $buf_ref, $buf_offset + 9, $length)