Branch Coverage

lib/Math/Business/BlackScholesMerton/Binaries.pm
Criterion Covered Total %
branch 50 54 92.5


line true false branch
100 2 11 if ($t < $SMALLTIME)
101 1 1 $S > $K ? :
128 2 11 if ($t < $SMALLTIME)
129 1 1 $S < $K ? :
235 23 16 $S < $U ? :
342 8 8 unless (defined $w)
346 4 12 if ($S >= $U or $S <= $D)
347 2 2 $w ? :
379 1 11 if ($onetouch_up_prob + $onetouch_down_prob < $MIN_ACCURACY_UPORDOWN_PELSSER_1997) { }
4 7 elsif ($onetouch_up_prob xor $onetouch_down_prob) { }
407 5 6 if ($w == 1)
412 0 5 if (abs exp(-$r_q * $t) - $upordown_prob < $MIN_ACCURACY_UPORDOWN_PELSSER_1997)
422 0 11 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)
460 1 15 unless (defined $eta)
463 8 7 if ($eta == 0)
499 0 253 if ($k == 1 and not abs $phi < $stability_constant)
531 3 12 if (abs $mu_dash * $h / ($sigma * $sigma) < $SMALL_VALUE_MU) { }
556 1 16 unless (defined $eta)
564 1 0 if ($p != 1 and $p != 2 and $p != 3)
640 16 2 unless (defined $accuracy)
644 1 17 if ($accuracy > $MIN_ACCURACY_UPORDOWN_PELSSER_1997) { }
1 16 elsif ($accuracy <= 0) { }
672 1 38 unless (defined $accuracy)
690 1 37 if ($delta * $B <= 0)
704 32 5 if ($k_min < $MIN_ITERATIONS_UPORDOWN_PELSSER_1997) { }
1 4 elsif ($k_min > $MAX_ITERATIONS_UPORDOWN_PELSSER_1997) { }
792 3 1 if ($type eq "c")