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'})
169 43 89 if ($c{$k} < $min)
175 37 0 if ($o->{'verbose'})
187 0 37 unless (defined $k)
191 10 27 if ($k =~ /^fake/)
200 5 0 if ($o->{'verbose'})
204 10 27 if ($k =~ /fake|dummy/)
221 0 1 unless $h and $s
227 3 0 if ($o->{'verbose'})
246 0 0 unless (defined $h)
265 0 0 unless ($o->{'value_re'})
269 0 0 if ($o->{'verbose'})
273 0 0 unless ($o->{'r'})
280 0 0 if (length $msg > 0)