Branch Coverage

blib/lib/Performance/Probability.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
137 17 6 if ($types->[$i] =~ /^CALL/ or $types->[$i] =~ /^PUT/) { }
6 0 elsif ($types->[$i] =~ /^DIGIT/) { }
140 374 17 if ($i != $j and $underlying->[$i] eq $underlying->[$j])
143 140 234 $sell_time->[$i] < $sell_time->[$j] ? :
144 232 142 $start_time->[$i] > $start_time->[$j] ? :
147 208 166 if ($b_interval > 0)
159 112 96 if ($types->[$i] ne $types->[$j])
163 0 208 if ($corr_ij < -1 or $corr_ij > 1)
177 30 102 if ($i != $j and $underlying->[$i] eq $underlying->[$j] and $exit_tick_epoch->[$i] == $exit_tick_epoch->[$j])
248 0 60 if ($type eq 'DIGITEVEN') { }
10 50 elsif ($type eq 'DIGITODD') { }
20 30 elsif ($type eq 'DIGITDIFF' or $type eq 'DIGITMATCH') { }
30 0 elsif ($type eq 'DIGITOVER' or $type eq 'DIGITUNDER') { }
257 0 20 $type eq 'DIGITDIFF' ? :
261 30 0 $type eq 'DIGITOVER' ? :
281 0 1 unless (defined $pnl)
295 0 1 if (grep {$_ != scalar @$start_time;} scalar @$sell_time, scalar @$types, scalar @$underlying, scalar @$bought_price, scalar @$payout, scalar @$exit_tick_epoch, scalar @$barriers)
305 0 23 if ($sell_time->[$i] - $start_time->[$i] == 0)