Branch Coverage

blib/lib/Set/ConsistentHash.pm
Criterion Covered Total %
branch 17 26 65.3


line true false branch
58 0 2 if @_
140 6 0 if ($weight) { }
172 2 1 if defined $$self{'total_weight'}
193 0 3 unless $$self{'weights'}{$target}
233 0 0 unless $$self{'buckets'}
234 0 0 if $$self{'hash_func'}
256 2 0 unless $$self{'buckets'}
311 795990 299 $mid ? :
314 101713 694576 if $pt <= $val_at_mid and $pt > $val_one_below
318 335 694241 if $lo == $hi
322 374780 319461 if ($val_at_mid < $pt) { }
324 0 374780 if $lo > $hi
329 1 319460 if $hi < $lo