Condition Coverage

blib/lib/Protocol/HTTP2/Connection.pm
Criterion Covered Total %
condition 42 90 46.6


and 3 conditions

line !l l&&!r l&&r condition
150 1 0 1 $type != 9 and $type != 6
207 260 0 0 not defined $prev_state and $type == 3
260 0 0 not defined $prev_state and $type == 3 and $act eq 'send'
218 115 144 1 ($type == 1 || $type == 5) && !($flags & 4)
255 1 0 75 $type == 1 and $cln2srv
1 0 0 $type == 5 and $srv2cln
1 0 0 $type == 3 and $act eq 'send'
282 9 4 0 $flags & 1 and $type == 0 || $type == 1
9 0 0 $type == 1 and not $pending
9 0 0 $type == 1 and not $pending and $self->stream_trailer($stream_id)
301 0 0 0 $type == 1 and $srv2cln
0 0 0 $type != 2 and $cln2srv
316 95 0 60 $flags & 1 and $srv2cln
0 95 0 not grep({$type == $_;} 8, 2) and $cln2srv
332 0 5 0 $type != 8 and $cln2srv
0 5 0 $type != 2 and ($type != 8 and $cln2srv)
396 29 21 1 $l != 0 and $size <= 0
400 15 4 31 $end && $l == $size
418 0 0 0 @_ and not $self->{'shutdown'}

or 3 conditions

line l !l&&r !l&&!r condition
196 161 0 260 $stream_id == 0 or $type == 4
161 0 260 $stream_id == 0 or $type == 4 or $type == 7
0 0 260 $stream_id == 0 or $type == 4 or $type == 7 or $self->upgrade
0 0 260 $stream_id == 0 or $type == 4 or $type == 7 or $self->upgrade or not $self->preface
204 0 260 0 $promised_sid or $stream_id
211 78 0 182 $self->{'type'} == 2 && $act eq 'send' || $self->{'type'} == 1 && $act eq 'recv'
215 48 0 212 $self->{'type'} == 2 && $act eq 'recv' || $self->{'type'} == 1 && $act eq 'send'
241 0 1 0 $promised_sid || $stream_id
242 0 1 0 $promised_sid || $stream_id
282 4 0 0 $type == 0 || $type == 1
316 10 0 155 $type == 3 or $flags & 1 and $srv2cln