Branch Coverage

blib/lib/Protocol/HTTP2/Connection.pm
Criterion Covered Total %
branch 68 112 60.7


line true false branch
29 22 23 $type == 1 ? :
97 21 159 if exists $opts{$_}
100 19 26 if (exists $opts{'settings'})
150 1 1 if $type != 9 and $type != 6
163 11 0 unless $self->shutdown
170 12 18 if @_
176 20 84 if @_
182 36 399 if @_
188 0 535 if @_
196 0 260 if $stream_id == 0 or $type == 4 or $type == 7 or $self->upgrade or not $self->preface
207 0 0 if not defined $prev_state and $type == 3 and $act eq 'send'
231 1 259 if (my $ps = $self->stream_pending_state($stream_id)) { }
0 259 elsif ($type == 9) { }
76 183 elsif ($prev_state == 1) { }
13 170 elsif ($prev_state == 3) { }
0 170 elsif ($prev_state == 2) { }
165 5 elsif ($prev_state == 4) { }
5 0 elsif ($prev_state == 5) { }
232 0 1 if ($type != 9) { }
1 0 elsif ($flags & 4) { }
240 0 1 if $promised_sid
255 75 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) { }
256 69 6 $flags & 1 ? :
261 0 0 if $flags & 4
282 4 9 if ($flags & 1 and $type == 0 || $type == 1) { }
0 9 elsif ($type == 3) { }
0 9 elsif ($type == 1 and not $pending and $self->stream_trailer($stream_id)) { }
301 0 0 if ($type == 3) { }
0 0 elsif ($type == 1 and $srv2cln) { }
0 0 elsif ($type != 2 and $cln2srv) { }
305 0 0 $flags & 1 ? :
316 70 95 if ($type == 3 or $flags & 1 and $srv2cln) { }
0 95 elsif (not grep({$type == $_;} 8, 2) and $cln2srv) { }
332 0 5 if ($type != 2 and ($type != 8 and $cln2srv))
351 36 36 $end ? :
352 72 0 if length $header_block <= $max_size
357 0 0 length $header_block <= $max_size ? :
369 0 0 length $header_block <= $max_size ? :
375 0 0 length $header_block <= $max_size ? :
384 17 30 defined $chunk ? :
385 31 16 if defined $end
392 49 104 if $size > $_
396 1 50 if $l != 0 and $size <= 0
400 31 19 $end && $l == $size ? :
404 46 4 if $l == $size
418 0 0 if (@_ and not $self->{'shutdown'})
420 0 0 if exists $self->{'on_error'}
434 0 675 unless exists $s->{$setting}
435 17 658 if @_ > 3
457 104 51 if (@_)
489 0 0 if $self->stream_state($stream_id) == 5
501 0 1 if (not defined $payload) { }
0 1 elsif (length $payload != 8) { }