| blib/lib/Array/Pick/Scan.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 26 | 53.8 |
| line | true | false | branch |
|---|---|---|---|
| 23 | 103 | 100 | if ($ref eq 'ARRAY') { } |
| 100 | 0 | elsif ($ref eq 'CODE') { } | |
| 27 | 2 | 101 | if (not $ary_size) { } |
| 101 | 0 | elsif ($num_items == 1) { } | |
| 31 | 1 | 100 | $opts->{'pos'} ? : |
| 35 | 0 | 0 | if (@items < $num_items) { } |
| 39 | 0 | 0 | $opts->{'pos'} ? : |
| 43 | 0 | 0 | if (rand $i + 1 < @items) |
| 45 | 0 | 0 | $opts->{'pos'} ? : |
| 57 | 100 | 900 | if (@items < $num_items) { } |
| 61 | 0 | 100 | $opts->{'pos'} ? : |
| 65 | 200 | 700 | if (rand $i + 1 < @items) |
| 67 | 0 | 200 | $opts->{'pos'} ? : |