Branch Coverage

blib/lib/Compress/Huffman.pm
Criterion Covered Total %
branch 35 68 51.4


line true false branch
32 11 36 if ($subk =~ /^fake/) { }
52 5 0 if ($options{'verbose'}) { }
59 0 5 if (ref $s ne 'HASH')
68 0 5 unless ($nentries)
73 0 27 unless (&looks_like_number($s->{$k}))
77 5 0 if ($o->{'verbose'})
81 3 2 unless (defined $size)
84 0 5 if ($size < 2 or int $size != $size)
87 0 5 if ($size > 10 and not $options{'alphabet'})
90 5 0 if ($o->{'verbose'})
95 2 3 if ($notprob) { }
99 0 6 if ($value < 0)
109 0 21 if ($value < 0 or $value > 1)
114 0 3 if (abs $total - 1 > 0.0001)
117 3 0 if ($o->{'verbose'})
128 5 0 if ($o->{'verbose'})
132 2 3 if ($size > 2)
135 2 0 if ($o->{'verbose'})
138 0 2 if ($ndummies > 0)
143 0 0 if ($c{$dummy})
156 15 0 if ($o->{'verbose'})
174 43 89 if ($c{$k} < $min)
180 37 0 if ($o->{'verbose'})
192 0 37 unless (defined $k)
196 10 27 if ($k =~ /^fake/)
205 5 0 if ($o->{'verbose'})
209 10 27 if ($k =~ /fake|dummy/)
226 0 1 unless $h and $s
232 3 0 if ($o->{'verbose'})
251 0 0 unless (defined $h)
270 0 0 unless ($o->{'value_re'})
274 0 0 if ($o->{'verbose'})
278 0 0 unless ($o->{'r'})
285 0 0 if (length $msg > 0)