Branch Coverage

blib/lib/Protocol/HTTP2/Connection.pm
Criterion Covered Total %
branch 64 104 61.5


line true false branch
29 19 20 $type == 1 ? :
95 17 139 if exists $opts{$_}
98 16 23 if (exists $opts{'settings'})
143 1 1 if ($self->frame_header_decode(\$self->{'queue'}[$_], 0))[1] != 9
157 8 0 unless $self->shutdown
164 9 15 if @_
170 14 40 if @_
176 30 219 if @_
182 0 304 if @_
190 0 134 if $stream_id == 0 or $type == 4 or $type == 7 or $self->upgrade or not $self->preface
201 0 0 if not defined $prev_state and $type == 3 and $act eq 'send'
225 1 133 if (my $ps = $self->stream_pending_state($stream_id)) { }
34 99 elsif ($prev_state == 1) { }
13 86 elsif ($prev_state == 3) { }
0 86 elsif ($prev_state == 2) { }
81 5 elsif ($prev_state == 4) { }
5 0 elsif ($prev_state == 5) { }
226 0 1 if ($type != 9) { }
1 0 elsif ($flags & 4) { }
234 0 1 if $promised_sid
243 33 1 if ($type == 1 and $cln2srv) { }
0 1 elsif ($type == 5 and $srv2cln) { }
0 1 elsif ($type == 3 and $act eq 'send') { }
0 1 elsif ($type != 2) { }
244 27 6 $flags & 1 ? :
249 0 0 if $flags & 4
270 4 9 if ($flags & 1 and $type == 0 || $type == 1) { }
0 9 elsif ($type == 3) { }
282 0 0 if ($type == 3) { }
0 0 elsif ($type == 1 and $srv2cln) { }
0 0 elsif ($type != 2 and $cln2srv) { }
286 0 0 $flags & 1 ? :
297 28 53 if ($type == 3 or $flags & 1 and $srv2cln) { }
0 53 elsif (not grep({$type == $_;} 8, 2) and $cln2srv) { }
313 0 5 if ($type != 2 and ($type != 8 and $cln2srv))
332 15 15 $end ? :
333 30 0 if length $header_block <= $max_size
338 0 0 length $header_block <= $max_size ? :
350 0 0 length $header_block <= $max_size ? :
356 0 0 length $header_block <= $max_size ? :
365 17 9 defined $chunk ? :
366 10 16 if defined $end
373 28 62 if $size > $_
377 1 29 if ($l != 0 and $size == 0)
384 10 19 $end && $l == $size ? :
388 25 4 if $l == $size
401 0 0 if (@_ and not $self->{'shutdown'})
403 0 0 if exists $self->{'on_error'}
417 0 380 unless exists $s->{$setting}
418 14 366 if @_ > 3
440 62 30 if (@_)
471 0 0 if $self->stream_state($stream_id) == 5