Branch Coverage

blib/lib/Compress/LZW/Progressive/Dict.pm
Criterion Covered Total %
branch 32 46 69.5


line true false branch
34 0 11801 unless defined $phrase
35 0 11801 if $self->code($phrase)
37 11801 0 unless (defined $code)
38 2597 9204 int @{$$self{'reuse_codes'};} ? :
53 0 2876 unless defined $phrase and defined $code
55 0 2876 unless defined $$self{'array'}[$code]
88 0 2874 unless $self->delete($phrase, $code)
130 0 6 if int @delete < $count
149 0 11801 if ($code and $self->phrase($code) eq $phrase) { }
167 0 0 unless defined $$self{'array'}[$code]
190 11813 13 if ref $class
207 32648 11801 if (defined $char) { }
208 27 32621 if ord $char == 0
224 0 9236 if defined $char and ord $char == 0
227 6360 2876 if (defined $char and my $child = $$self[0]{$char}) { }
2876 0 elsif (not defined $char) { }
228 2884 3476 if ($child->delete($chars))
237 6352 2884 %{$$self[0];} || defined $$self[1] ? :
249 41 62359 if defined $char and ord $char == 0
251 42039 20361 if (defined $char and my $child = $$self[0]{$char})
253 42032 7 if defined $found_desc
256 17033 3335 if (not defined $found_desc and defined $$self[1])
266 0 0 if defined $$self[1]