Branch Coverage

blib/lib/Data/Entropy/Algorithms.pm
Criterion Covered Total %
branch 61 74 82.4


line true false branch
85 1 41 unless $nbits >= 0
101 1 20639 unless $limit > 0
127 76 78 @_ == 1 && CORE::rand $_[0] ? :
131 1 753 unless $prob >= 0
134 1 152 if $total == 0
138 152 218 if entropy_source->get_prob($total, $prob)
164 1 515 unless $nbits >= 0
166 0 515 if $nbits > 53
220 2 256 !defined($limit) || $limit == 0 ? :
250 0 11000 unless float_is_finite $a and float_is_finite $b
252 2000 9000 if ($a == $b)
253 1000 1000 if $a == 0 and float_sign $a ne float_sign $b
257 4000 5000 if abs $a < abs $b
258 0 9000 $a == 0 ? :
260 1000 8000 $b == 0 ? :
264 6000 3000 if ($b_sign eq $prm_sign) { }
274 9000 0 if $bdone > 28
276 0 9000 if ($prm_max_sgnf < 1)
282 0 0 if $prm_frng >= $desired_rng
286 0 9000 if $prm_frng != $prm_rng
288 5000 4000 $min_b >= 0 ? :
290 3000 6000 $opp_b >= 0 ? :
292 0 9000 if $opp_frng != $opp_rng
295 1184 7816 if ($n >= $prm_rng)
304 8440 36560 if ($bdone >= $bit and $exp - $bit >= -1022 and $n < 2 << $bdone - $bit)
310 0 9000 if $exp < $min_exp
311 1453 7547 $exp == $max_exp ? :
312 3547 5453 $exp == $min_exp ? :
322 299 9000 if $bseg > 28
327 0 9000 if $sgnf < $bot_sgnf or $sgnf >= $top_sgnf
328 0 9000 if $sgnf == $bot_sgnf and rand_int(2)
329 0 9000 $sgnf == 0 ? :
356 3 152 unless CORE::rand $a and @$a
383 2 49 unless $nchoose >= 0
385 3 46 unless CORE::rand $a and @$a >= $nchoose
391 128 286 if (entropy_source->get_prob($nleave, $nchoose)) { }
421 1 18 unless CORE::rand $a