Branch Coverage

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


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