lib/App/Sandy/WeightedRaffle.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 6 | 8 | 75.0 |
line | true | false | branch |
---|---|---|---|
51 | 0 | 20 | if (scalar @$weights != scalar @$keys) |
98 | 0 | 1710 | unless (defined $index) |
110 | 1710 | 1928 | if ($range >= $weight->{'down'} and $range <= $weight->{'up'}) { } |
1391 | 537 | elsif ($range > $weight->{'down'}) { } |