Branch Coverage

blib/lib/Acme/Urinal.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
101 0 2 if (ref $resources) { }
1 1 elsif ($resources > 0) { }
138 43 28 if $in_use
140 4 24 if ($choice_score < 5 and $i > 0 and $i < $#$self and not $$self[$i - 1][0] and not $$self[$i + 1][0]) { }
2 22 elsif ($choice_score < 4 and $i > 0 and not $$self[$i - 1][0]) { }
6 16 elsif ($choice_score < 3 and $i < $#$self and not $$self[$i + 1][0]) { }
5 11 elsif ($choice_score < 2 and $i > 0 and $i < $#$self) { }
7 4 elsif ($choice_score < 1) { }
167 10 1 if (defined $best_choice)
170 8 2 if (wantarray) { }
196 1 2 if ($$self[$i][0])
200 2 0 if (wantarray) { }
228 4 1 if (wantarray) { }
230 3 1 unless ($$self[$i][0])
231 1 2 if ($i > 0 and $i < $#$self and not $$self[$i - 1][0] and not $$self[$i + 1][0]) { }
0 2 elsif ($i > 0 and not $$self[$i - 1][0]) { }
0 2 elsif ($i < $#$self and not $$self[$i + 1][0]) { }
1 1 elsif ($i > 0 and $i < $#$self) { }
271 1 7 unless ($$self[$i][0])