Branch Coverage

blib/lib/Protocol/HTTP2/Client.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
175 1 15 exists $opts{'settings'} ? :
177 0 16 if (exists $opts{'on_push'})
192 0 0 if ($res and ref $cb eq 'CODE') { }
223 8 20 unless $self->{'active_streams'} > 0
311 0 18 if @miss
319 1 17 if ($con->upgrade and not exists $self->{'sent_upgrade'}) { }
323 1 0 exists $h{'headers'} ? :
330 15 2 unless ($con->preface)
342 15 2 exists $h{'headers'} ? :
2 15 exists $h{'data'} ? :
344 2 15 if exists $h{'data'}
360 11 7 if exists $h{'on_done'}
367 5 0 if $res
370 5 13 if exists $h{'on_headers'}
377 0 5 if $res
380 5 13 if exists $h{'on_data'}
428 80 45 if $frame
448 1 68 if ($con->upgrade)
450 1 0 unless defined $len
451 1 0 unless $len
461 68 0 if $offset