Branch Coverage

blib/lib/Compress/LZW/Compressor.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
53 10935836 387851 if (exists $$self{'code_table'}{$seen . $char}) { }
63 48404 339447 if ($$self{'at_max_code'} and $self->block_mode)
64 3 48401 if (not defined $checkpoint) { }
114 48287 elsif ($bytes_in > $checkpoint) { }
69 2 112 unless defined $last_ratio
72 111 3 if ($ratio >= $last_ratio) { }
3 0 elsif ($ratio < $last_ratio) { }
102 9 1 $self->block_mode ? :
120 12 1 $self->block_mode ? :
129 48476 339375 if ($$self{'next_code'} >= $$self{'next_increase'})
131 39 48437 if ($$self{'code_size'} < $$self{'max_code_size'}) { }
140 339414 48437 if ($$self{'at_max_code'} == 0)
151 0 387864 unless defined $code
153 0 387864 if ($code > 2 ** $$self{'code_size'})
163 0 387864 if ($code == 1) { }
169 3141641 2748051 if ($code >> $bit & 1)