Branch Coverage

lib/Math/Business/BlackScholes/Binaries.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
135 0 0 if ($t < $SMALLTIME)
136 0 0 $S > $K ? :
163 0 0 if ($t < $SMALLTIME)
164 0 0 $S < $K ? :
270 0 0 $S < $U ? :
377 0 0 unless (defined $w)
381 0 0 if ($S >= $U or $S <= $D)
382 0 0 $w ? :
414 0 0 if ($onetouch_up_prob + $onetouch_down_prob < $MIN_ACCURACY_UPORDOWN_PELSSER_1997) { }
0 0 elsif ($onetouch_up_prob xor $onetouch_down_prob) { }
442 0 0 if ($w == 1)
447 0 0 if (abs exp(-$r_q * $t) - $upordown_prob < $MIN_ACCURACY_UPORDOWN_PELSSER_1997)
457 0 0 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)
495 0 0 unless (defined $eta)
498 0 0 if ($eta == 0)
534 0 0 if ($k == 1 and not abs $phi < $stability_constant)
566 0 0 if (abs $mu_dash * $h / ($sigma * $sigma) < $SMALL_VALUE_MU) { }
591 0 0 unless (defined $eta)
599 0 0 if ($p != 1 and $p != 2 and $p != 3)
675 0 0 unless (defined $accuracy)
679 0 0 if ($accuracy > $MIN_ACCURACY_UPORDOWN_PELSSER_1997) { }
0 0 elsif ($accuracy <= 0) { }
707 0 0 unless (defined $accuracy)
725 0 0 if ($delta * $B <= 0)
739 0 0 if ($k_min < $MIN_ITERATIONS_UPORDOWN_PELSSER_1997) { }
0 0 elsif ($k_min > $MAX_ITERATIONS_UPORDOWN_PELSSER_1997) { }