Branch Coverage

lib/Math/Business/BlackScholes/Binaries.pm
Criterion Covered Total %
branch 47 52 90.3


line true false branch
145 2 11 if ($t < $SMALLTIME)
146 1 1 $S > $K ? :
173 2 11 if ($t < $SMALLTIME)
174 1 1 $S < $K ? :
282 21 15 $S < $U ? :
390 8 7 unless (defined $w)
394 4 11 if ($S >= $U or $S <= $D)
395 2 2 $w ? :
427 1 10 if ($onetouch_up_prob + $onetouch_down_prob < $MIN_ACCURACY_UPORDOWN_PELSSER_1997) { }
4 6 elsif ($onetouch_up_prob xor $onetouch_down_prob) { }
460 5 5 if ($w == 1)
465 0 5 if (abs exp(-$r_q * $t) - $upordown_prob < $MIN_ACCURACY_UPORDOWN_PELSSER_1997)
478 0 10 unless ($upordown_prob < $onetouch_up_prob + $onetouch_down_prob + $SMALL_TOLERANCE and $upordown_prob + $SMALL_TOLERANCE > $onetouch_up_prob and $upordown_prob + $SMALL_TOLERANCE > $onetouch_down_prob)
519 1 13 unless (defined $eta)
523 7 6 if ($eta == 0)
573 0 195 if ($k == 1 and not abs $phi < $stability_constant)
606 1 12 if (abs $mu_dash * $h / ($sigma * $sigma) < $SMALL_VALUE_MU) { }
634 1 14 unless (defined $eta)
643 1 0 if ($p != 1 and $p != 2 and $p != 3)
731 14 2 unless (defined $accuracy)
735 1 15 if ($accuracy > $MIN_ACCURACY_UPORDOWN_PELSSER_1997) { }
1 14 elsif ($accuracy <= 0) { }
771 1 34 unless (defined $accuracy)
793 1 33 if ($delta * $B <= 0)
808 32 1 if ($k_min < $MIN_ITERATIONS_UPORDOWN_PELSSER_1997) { }
1 0 elsif ($k_min > $MAX_ITERATIONS_UPORDOWN_PELSSER_1997) { }