blib/lib/Role/Random/PerInstance.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 24 | 83.3 |
line | true | false | branch |
---|---|---|---|
36 | 0 | 0 | unless ($self->random_seed or $self->_seed_is_set) |
42 | 6 | 4024 | unless $self->_seed_is_set |
53 | 2193 | 809 | $rand < $chance ? : |
65 | 12000 | 5032 | if $step |
66 | 4000 | 13032 | $self->random_seed ? : |
71 | 12000 | 5032 | if $step |
91 | 1000 | 9000 | unless $weight |
109 | 1209 | 2458 | 0 == $index ? : |
110 | 2000 | 1667 | if ($prev < $elem and $curr >= $elem) { } |
779 | 888 | elsif ($curr > $elem) { } | |
120 | 0 | 3002 | $num > $max ? : |
0 | 3002 | $num < $min ? : |