Branch Coverage

blib/lib/Protocol/HTTP2/HeaderCompression.pm
Criterion Covered Total %
branch 40 66 60.6


line true false branch
17 233 3 if ($int < $ff)
45 0 214 if length($$buf_ref) - $buf_offset <= 0
50 213 1 if $$int_ref < $ff
55 0 2 if $i > 4
58 1 1 if $s < 128
68 66 10 if (length $huff_str < length $str) { }
91 0 72 unless defined $offset and length($$buf_ref) - $buf_offset - $offset >= $l
95 63 9 if vec($$buf_ref, $buf_offset * 8 + 7, 1) == 1
123 0 144 if $size > $context->{'settings'}{&SETTINGS_HEADER_TABLE_SIZE}
151 72 70 if ($f & 128) { }
1 69 elsif ($f == 64 or $f == 0 or $f == 16) { }
69 0 elsif (($f & 192) == 64 or ($f & 240) == 0 or ($f & 240) == 16) { }
0 0 elsif (($f & 224) == 32) { }
154 0 72 unless $size
157 0 72 if ($index == 0)
166 64 8 if ($index <= @Protocol::HTTP2::HeaderCompression::stable) { }
0 8 elsif ($index > @Protocol::HTTP2::HeaderCompression::stable + @$ht) { }
193 0 1 unless $key_size
195 0 1 if ($key_size == 1)
201 0 1 if ($key =~ /[^a-z0-9\!\#\$\%\&\'\*\+\-\^\_\`]/ and not $key =~ /^\:/)
211 0 1 unless $value_size
217 1 0 if ($f == 64)
231 69 0 ($f & 192) == 64 ? :
233 0 69 unless $size
237 0 69 unless $value_size
241 69 0 if ($index <= @Protocol::HTTP2::HeaderCompression::stable) { }
0 0 elsif ($index > @Protocol::HTTP2::HeaderCompression::stable + @$ht) { }
260 69 0 if (($f & 192) == 64)
272 0 0 unless $size
275 0 0 if ($ht_size > $context->{'settings'}{&SETTINGS_HEADER_TABLE_SIZE})
315 168 13 unless $ht->[$i][0] eq $header and $ht->[$i][1] eq $value
326 69 74 if (exists $Protocol::HTTP2::HeaderCompression::rstable{$header . ' ' . $value}) { }
73 1 elsif (exists $Protocol::HTTP2::HeaderCompression::rstable{$header . ' '}) { }