Branch Coverage

blib/lib/Protocol/SPDY/Base.pm
Criterion Covered Total %
branch 13 36 36.1


line true false branch
155 0 0 if ($frame->version > 3)
159 0 0 if $frame->type == {1 => 'SYN_STREAM', 10 => 'CREDENTIAL', 2 => 'SYN_REPLY', 3 => 'RST_STREAM', 4 => 'SETTINGS', 5 => 'NOOP', 6 => 'PING', 7 => 'GOAWAY', 8 => 'HEADERS', 9 => 'WINDOW_UPDATE'}->{'SYN_STREAM'}
177 6 2 if (defined $self->{'last_stream_id'}) { }
182 8 0 if $self->{'last_stream_id'} <= 2147483647
219 0 10 unless $f
222 0 10 unless @frames
228 10 0 if exists $self->{'batch'}
262 10 0 if (my $stream = $self->related_stream($frame)) { }
267 0 0 if ($frame->type_name eq 'SYN_STREAM') { }
0 0 elsif ($frame->type_name eq 'PING') { }
0 0 elsif ($frame->type_name eq 'SETTINGS') { }
328 0 10 unless my $m = $frame->can('stream_id')
330 0 10 unless my $stream = $self->stream_by_id($stream_id)
346 0 0 unless my $k = lc {1 => 'EXPECTED_UPLOAD_BANDWIDTH', 2 => 'EXPECTED_DOWNLOAD_BANDWIDTH', 3 => 'EXPECTED_ROUND_TRIP_TIME', 4 => 'MAX_CONCURRENT_STREAMS', 5 => 'CURRENT_CWND', 6 => 'DOWNLOAD_RETRANS_RATE', 7 => 'INITIAL_WINDOW_SIZE'}->{$id}
365 10 20 unless length $$buffer >= 8
369 0 20 unless length $$buffer >= 8 + $len
405 0 0 unless 0 + $status eq $status
524 8 0 exists $self->{'streams'}{$stream->id} ? :