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 ? :
392 8 7 unless (defined $w)
396 4 11 if ($S >= $U or $S <= $D)
397 2 2 $w ? :
429 1 10 if ($onetouch_up_prob + $onetouch_down_prob < $MIN_ACCURACY_UPORDOWN_PELSSER_1997) { }
4 6 elsif ($onetouch_up_prob xor $onetouch_down_prob) { }
462 5 5 if ($w == 1)
467 0 5 if (abs exp(-$r_q * $t) - $upordown_prob < $MIN_ACCURACY_UPORDOWN_PELSSER_1997)
480 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)
521 1 13 unless (defined $eta)
525 7 6 if ($eta == 0)
575 0 195 if ($k == 1 and not abs $phi < $stability_constant)
608 1 12 if (abs $mu_dash * $h / ($sigma * $sigma) < $SMALL_VALUE_MU) { }
636 1 14 unless (defined $eta)
645 1 0 if ($p != 1 and $p != 2 and $p != 3)
733 14 2 unless (defined $accuracy)
737 1 15 if ($accuracy > $MIN_ACCURACY_UPORDOWN_PELSSER_1997) { }
1 14 elsif ($accuracy <= 0) { }
773 1 34 unless (defined $accuracy)
795 1 33 if ($delta * $B <= 0)
810 32 1 if ($k_min < $MIN_ITERATIONS_UPORDOWN_PELSSER_1997) { }
1 0 elsif ($k_min > $MAX_ITERATIONS_UPORDOWN_PELSSER_1997) { }