Branch Coverage

blib/lib/VolSurface/Calibration/Equities.pm
Criterion Covered Total %
branch 45 52 86.5


line true false branch
138 38 23465 if $param_name =~ /wing(R|L)/i and abs $param_value > 20
140 8 23457 if $param_name =~ /growth/i and abs $param_value > 5
142 11 23446 if not $param_name =~ /wing(R|L)/i || $param_name =~ /growth/i and abs $param_value > 2
148 65 1713 if &min(@variance) < 0
236 1 0 if ($self->parameterization)
245 1 0 if ($opt_using_params_from_cache) { }
248 1 0 $opt_using_params_from_cache->{'calibration_error'} < $opt_using_initial_params->{'calibration_error'} ? :
295 0 251811 unless defined $point
296 0 251811 unless ($params)
308 0 251811 $tmp_corr < 0 ? :
315 11991 239820 if abs $x < 1e-08
317 119910 119910 $x > 0 ? :
322 0 239820 if abs $z < 1e-08
439 10 16 if 0.1 * abs($params->[$i]) > $step
444 26 312 $i == $_ ? :
463 9 789 if ($calcvert == 1)
466 117 9 if ($j != $lowest_point_index)
483 2 796 if $function_eval[$lowest_point_index] < $intol or $function_eval[$highest_point_index] < $function_eval[$lowest_point_index] + $convtol or $counter > $self->_max_iteration
491 134 662 if ($reflected_function_eval < $function_eval[$lowest_point_index]) { }
497 81 53 if ($expansion_function_eval < $reflected_function_eval) { }
512 558 104 if ($reflected_function_eval < $highest_value)
522 379 283 if ($contraction_function_eval < $function_eval[$highest_point_index]) { }
7 276 elsif ($reflected_function_eval >= $highest_value) { }
528 91 7 if ($i != $lowest_point_index)
544 4 24 if ($eval_item < $lowest_point_value)
569 134862 10374 if $i != $highest_point_index