Branch Coverage

blib/lib/MAS/TIFF/Compression/LZW.pm
Criterion Covered Total %
branch 44 62 70.9


line true false branch
40 604 403 if $code < 256
42 0 403 if $code == 256
43 0 403 if $code == 257
47 0 403 unless defined $string
58 0 553 unless defined $string
59 0 553 if $string eq ''
61 303 250 if length $string == 1
65 0 250 unless defined $code
81 3 9456 if length $value == 1
90 0 1100 if (length $string == 1) { }
95 0 1100 if $self->is_string_in_table($string)
116 0 559 if ($code_count >= 2048) { }
0 559 elsif ($code_count >= 1024) { }
40 519 elsif ($code_count >= 512) { }
141 559 570 if ($remaining <= $available) { }
155 633 496 if ($bit_index == 8) { }
174 3 0 if (defined $$self{'BYTE'})
190 0 559 if ($code_count >= 2047) { }
0 559 elsif ($code_count >= 1023) { }
40 519 elsif ($code_count >= 511) { }
211 0 559 if $size > $bits_remaining
221 559 570 if ($remaining <= $available) { }
238 633 496 if ($bit_index == 8)
241 0 633 if ($byte_index == $input_length and $remaining > 0)
285 7809 550 if ($state->is_string_in_table($key)) { }
294 0 550 if ($new_code == 4096)
320 0 556 unless defined $code
321 3 553 if $code == 257
323 3 550 if ($code == 256) { }
326 0 3 if $code == 257
331 454 96 if ($state->is_code_in_table($code)) { }