Branch Coverage

blib/lib/Compress/LZString.pm
Criterion Covered Total %
branch 58 100 58.0


line true false branch
39 0 2 unless $input
45 0 2 unless $input
51 0 2 unless $uncompressed
74 0 6 unless $uncompressed
95 360 9738 unless defined $context_dictionary{$_}
99 4974 5124 if defined $context_dictionary{$context_wc}
101 360 4764 if (defined $context_dictionaryToCreate{$context_w}) { }
103 360 0 if (ord substr($context_w, 0, 1) < 256) { }
108 328 2258 if ($context_data_position == $bitsPerChar - 1) { }
119 403 2477 if ($context_data_position == $bitsPerChar - 1) { }
134 0 0 if ($context_data_position == $bitsPerChar - 1) { }
146 0 0 if ($context_data_position == $bitsPerChar - 1) { }
156 12 348 if ($context_enlargeIn == 0)
169 5983 39449 if ($context_data_position == $bitsPerChar - 1) { }
179 36 5088 if ($context_enlargeIn == 0)
190 6 0 if ($context_w ne '')
192 0 6 if (defined $context_dictionaryToCreate{$context_w}) { }
194 0 0 if (ord substr($context_w, 0, 1) < 256) { }
199 0 0 if ($context_data_position == $bitsPerChar - 1) { }
210 0 0 if ($context_data_position == $bitsPerChar - 1) { }
225 0 0 if ($context_data_position == $bitsPerChar - 1) { }
237 0 0 if ($context_data_position == $bitsPerChar - 1) { }
247 0 0 if ($context_enlargeIn == 0)
260 7 53 if ($context_data_position == $bitsPerChar - 1) { }
270 0 6 if ($context_enlargeIn == 0)
282 7 53 if ($context_data_position == $bitsPerChar - 1) { }
317 0 12 ($data{'val'} & $data{'position'}) > 0 ? :
318 12 0 if $data{'position'} >>= 1
323 6 0 if ($bits == 0) { }
0 0 elsif ($bits == 1) { }
0 0 elsif ($bits == 2) { }
327 24 24 ($data{'val'} & $data{'position'}) > 0 ? :
328 44 4 if $data{'position'} >>= 1
338 0 0 ($data{'val'} & $data{'position'}) > 0 ? :
339 0 0 if $data{'position'} >>= 1
352 0 5130 if $data{'index'} > $length
356 20313 27813 ($data{'val'} & $data{'position'}) > 0 ? :
357 41801 6325 if $data{'position'} >>= 1
362 354 4776 if (($c = $bits) == 0) { }
0 4776 elsif ($bits == 1) { }
6 4770 elsif ($bits == 2) { }
366 1347 1485 ($data{'val'} & $data{'position'}) > 0 ? :
367 2433 399 if $data{'position'} >>= 1
378 0 0 ($data{'val'} & $data{'position'}) > 0 ? :
379 0 0 if $data{'position'} >>= 1
388 12 5112 unless $enlargeIn
390 5121 3 if (defined $dictionary{$c}) { }
391 0 3 unless $c == $dictSize
398 30 5094 unless $enlargeIn
412 2 5668 unless defined $baseReverseDic{$alphabet}