Branch Coverage

blib/lib/Protocol/HTTP2/Client.pm
Criterion Covered Total %
branch 40 52 76.9


line true false branch
183 1 18 exists $opts{'keepalive'} ? :
1 18 exists $opts{'settings'} ? :
185 0 19 if (exists $opts{'on_push'})
200 0 0 if ($res and ref $cb eq 'CODE') { }
233 10 10 unless $self->{'active_streams'} > 0 or $self->{'keepalive'}
335 0 41 if @miss
340 2 39 unless (defined $stream_id)
341 1 1 if (exists $con->{'on_error'}) { }
352 1 38 if ($con->upgrade and not exists $self->{'sent_upgrade'}) { }
356 1 0 exists $h{'headers'} ? :
363 18 20 unless ($con->preface)
375 36 2 exists $h{'headers'} ? :
2 36 exists $h{'data'} ? :
377 2 36 if exists $h{'data'}
387 0 31 if (exists $h{'on_error'} and $con->stream_reset($stream_id)) { }
398 32 7 if exists $h{'on_done'}
405 5 0 if $res
408 5 34 if exists $h{'on_headers'}
415 0 5 if $res
418 5 34 if exists $h{'on_data'}
436 1 0 @_ ? :
493 114 98 if $frame
513 1 116 if ($con->upgrade)
515 1 0 unless defined $len
516 1 0 unless $len
526 116 0 if $offset