Branch Coverage

blib/lib/Algorithm/Pair/Best2.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
35 0 2 if (keys %args)
36 0 0 scalar keys %args > 1 ? :
53 105 2708 if (not exists $$self{'score_cache'}{$cache_key}) { }
56 0 105 if $score < 0
77 0 2 if (scalar @{$items;} <= 0)
80 0 2 if (scalar @{$items;} & 1)
90 26 6 unless (exists $paired{$idx})
92 4 22 if @w_idxs >= $window * 2
103 2 2 if (scalar keys %paired < scalar(@{$items;}) - 2 * $window) { }
122 2 0 wantarray ? :
129 494 506 if (@{$idxs;} <= 2)
130 0 494 if @{$idxs;} <= 1
137 1800 506 if ($idx > 0)
145 0 2306 if $trial_score < 0
146 1310 996 if $trial_score >= $best_score
149 559 437 if $trial_score >= $best_score
156 355 151 if ($best_trial)