Branch Coverage

blib/lib/Compress/LZW/Decompressor.pm
Criterion Covered Total %
branch 18 20 90.0


line true false branch
34 3 387848 if ($$self{'block_mode'} and $code == $Compress::LZW::Decompressor::RESET_CODE)
46 387838 10 if (defined(my $word = $$self{'str_table'}{$code})) { }
10 0 elsif ($code == $$self{'next_code'}) { }
69 48479 339369 if ($$self{'next_code'} + 1 >= $next_increase)
70 39 48440 if ($$self{'code_size'} < $$self{'max_code_size'}) { }
80 339408 48440 if ($$self{'at_max_code'} == 0)
106 15 8 $$self{'block_mode'} ? :
115 0 10 if (length $magic != 3 or substr($magic, 0, 2) ne $Compress::LZW::Decompressor::MAGIC)
128 5 387869 if ($$self{'data_pos'} > length(${$$self{'data'};}) * 8)
141 5 387864 if $code == 0 and $$self{'data_pos'} > length(${$$self{'data'};}) * 8