Branch Coverage

blib/lib/Compress/Huffman.pm
Criterion Covered Total %
branch 47 68 69.1


line true false branch
32 139 264 if ($subk =~ /^fake/) { }
52 5 2 if ($options{'verbose'}) { }
59 0 7 if (ref $s ne 'HASH')
68 0 7 unless ($nentries)
73 0 81 unless (&looks_like_number($s->{$k}))
77 5 2 if ($o->{'verbose'})
81 5 2 unless (defined $size)
84 0 7 if ($size < 2 or int $size != $size)
87 0 7 if ($size > 10 and not $options{'alphabet'})
90 5 2 if ($o->{'verbose'})
95 4 3 if ($notprob) { }
98 0 60 if ($value < 0)
107 0 21 if ($value < 0 or $value > 1)
112 0 3 if (abs $total - 1 > 0.0001)
115 3 0 if ($o->{'verbose'})
126 5 2 if ($o->{'verbose'})
129 2 5 if ($size > 2)
132 2 0 if ($o->{'verbose'})
135 0 2 if ($ndummies > 0)
140 0 0 if ($c{$dummy})
153 15 52 if ($o->{'verbose'})
170 237 1351 if ($c{$k} < $min)
176 37 104 if ($o->{'verbose'})
188 0 141 unless (defined $k)
192 60 81 if ($k =~ /^fake/)
201 5 2 if ($o->{'verbose'})
205 60 81 if ($k =~ /fake|dummy/)
222 0 1 unless $h and $s
228 3 0 if ($o->{'verbose'})
247 0 29 unless (defined $h)
266 1 0 unless ($o->{'value_re'})
270 0 1 if ($o->{'verbose'})
274 1 0 unless ($o->{'r'})
281 0 1 if (length $msg > 0)