Branch Coverage

blib/lib/Compress/LZString.pm
Criterion Covered Total %
branch 56 100 56.0


line true false branch
36 0 2 unless $input
42 0 2 unless $input
48 0 1 unless $uncompressed
71 0 5 unless $uncompressed
92 240 2140 unless defined $context_dictionary{$_}
96 830 1550 if defined $context_dictionary{$context_wc}
98 240 1310 if (defined $context_dictionaryToCreate{$context_w}) { }
100 240 0 if (ord substr($context_w, 0, 1)) { }
105 220 1330 if ($context_data_position == $bitsPerChar - 1) { }
116 291 1629 if ($context_data_position == $bitsPerChar - 1) { }
131 0 0 if ($context_data_position == $bitsPerChar - 1) { }
143 0 0 if ($context_data_position == $bitsPerChar - 1) { }
153 10 230 if ($context_enlargeIn == 0)
166 1528 9002 if ($context_data_position == $bitsPerChar - 1) { }
176 25 1525 if ($context_enlargeIn == 0)
187 5 0 if ($context_w ne '')
189 0 5 if (defined $context_dictionaryToCreate{$context_w}) { }
191 0 0 if (ord substr($context_w, 0, 1)) { }
196 0 0 if ($context_data_position == $bitsPerChar - 1) { }
207 0 0 if ($context_data_position == $bitsPerChar - 1) { }
222 0 0 if ($context_data_position == $bitsPerChar - 1) { }
234 0 0 if ($context_data_position == $bitsPerChar - 1) { }
244 0 0 if ($context_enlargeIn == 0)
257 8 37 if ($context_data_position == $bitsPerChar - 1) { }
267 0 5 if ($context_enlargeIn == 0)
279 5 40 if ($context_data_position == $bitsPerChar - 1) { }
314 0 10 ($data{'val'} & $data{'position'}) > 0 ? :
315 10 0 if $data{'position'} >>= 1
320 5 0 if ($bits == 0) { }
0 0 elsif ($bits == 1) { }
0 0 elsif ($bits == 2) { }
324 20 20 ($data{'val'} & $data{'position'}) > 0 ? :
325 36 4 if $data{'position'} >>= 1
335 0 0 ($data{'val'} & $data{'position'}) > 0 ? :
336 0 0 if $data{'position'} >>= 1
349 0 1555 if $data{'index'} > $length
353 4600 7560 ($data{'val'} & $data{'position'}) > 0 ? :
354 10399 1761 if $data{'position'} >>= 1
359 235 1320 if (($c = $bits) == 0) { }
0 1320 elsif ($bits == 1) { }
5 1315 elsif ($bits == 2) { }
363 945 935 ($data{'val'} & $data{'position'}) > 0 ? :
364 1593 287 if $data{'position'} >>= 1
375 0 0 ($data{'val'} & $data{'position'}) > 0 ? :
376 0 0 if $data{'position'} >>= 1
385 10 1540 unless $enlargeIn
387 1550 0 if (defined $dictionary{$c}) { }
388 0 0 unless $c == $dictSize
395 20 1530 unless $enlargeIn
409 2 1878 unless defined $baseReverseDic{$alphabet}