Condition Coverage

blib/lib/Protocol/HTTP2/Connection.pm
Criterion Covered Total %
condition 34 81 41.9


and 3 conditions

line !l l&&!r l&&r condition
201 104 0 0 not defined $prev_state and $type == 3
104 0 0 not defined $prev_state and $type == 3 and $act eq 'send'
212 55 48 1 ($type == 1 || $type == 5) && !($flags & 4)
243 1 0 27 $type == 1 and $cln2srv
1 0 0 $type == 5 and $srv2cln
1 0 0 $type == 3 and $act eq 'send'
270 1 0 0 $flags & 1 and $type == 0 || $type == 1
282 0 0 0 $type == 1 and $srv2cln
0 0 0 $type != 2 and $cln2srv
297 47 0 12 $flags & 1 and $srv2cln
0 47 0 not grep({$type == $_;} 8, 2) and $cln2srv
313 0 5 0 $type != 8 and $cln2srv
0 5 0 $type != 2 and ($type != 8 and $cln2srv)
377 5 15 0 $l != 0 and $size == 0
384 15 0 5 $end && $l == $size
401 0 0 0 @_ and not $$self{'shutdown'}

or 3 conditions

line l !l&&r !l&&!r condition
190 118 0 104 $stream_id == 0 or $type == 4
118 0 104 $stream_id == 0 or $type == 4 or $type == 7
0 0 104 $stream_id == 0 or $type == 4 or $type == 7 or $self->upgrade
0 0 104 $stream_id == 0 or $type == 4 or $type == 7 or $self->upgrade or not $self->preface
198 0 104 0 $promised_sid or $stream_id
204 30 0 74 $$self{'type'} == 2 && $act eq 'send' || $$self{'type'} == 1 && $act eq 'recv'
208 18 0 86 $$self{'type'} == 2 && $act eq 'recv' || $$self{'type'} == 1 && $act eq 'send'
235 0 1 0 $promised_sid || $stream_id
236 0 1 0 $promised_sid || $stream_id
270 0 0 0 $type == 0 || $type == 1
297 10 0 59 $type == 3 or $flags & 1 and $srv2cln