Branch Coverage

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


line true false branch
17 210 3 if ($int < $ff)
45 0 191 if length($$buf_ref) - $buf_offset <= 0
50 190 1 if $$int_ref < $ff
55 0 2 if $i > 4
58 1 1 if $s < 128
68 63 8 if (length $huff_str < length $str) { }
91 0 67 unless defined $offset and length($$buf_ref) - $buf_offset - $offset >= $l
95 60 7 if vec($$buf_ref, $buf_offset * 8 + 7, 1) == 1
123 0 134 if $size > $$context{'settings'}{&SETTINGS_HEADER_TABLE_SIZE}
151 59 65 if ($f & 128) { }
1 64 elsif ($f == 64 or $f == 0 or $f == 16) { }
64 0 elsif (($f & 192) == 64 or ($f & 240) == 0 or ($f & 240) == 16) { }
0 0 elsif (($f & 224) == 32) { }
154 0 59 unless $size
157 0 59 if ($index == 0)
166 57 2 if ($index <= @Protocol::HTTP2::HeaderCompression::stable) { }
0 2 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 64 0 ($f & 192) == 64 ? :
233 0 64 unless $size
237 0 64 unless $value_size
241 64 0 if ($index <= @Protocol::HTTP2::HeaderCompression::stable) { }
0 0 elsif ($index > @Protocol::HTTP2::HeaderCompression::stable + @$ht) { }
260 64 0 if (($f & 192) == 64)
272 0 0 unless $size
275 0 0 if ($ht_size > $$context{'settings'}{&SETTINGS_HEADER_TABLE_SIZE})
315 148 7 unless $$ht[$i][0] eq $header and $$ht[$i][1] eq $value
326 62 69 if (exists $Protocol::HTTP2::HeaderCompression::rstable{$header . ' ' . $value}) { }
68 1 elsif (exists $Protocol::HTTP2::HeaderCompression::rstable{$header . ' '}) { }