| blib/lib/WordList.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 21 | 26 | 80.7 |
| line | true | false | branch |
|---|---|---|---|
| 25 | 5 | 0 | unless (defined ${"${class}::DATA_POS";}) |
| 40 | 14 | 10 | $i++ ? : |
| 41 | 7 | 17 | unless defined $word |
| 43 | 3 | 14 | if defined $res and $res == -2 |
| 52 | 25 | 8 | if defined $word |
| 60 | 0 | 15 | unless $self->{'fh_seekable'} |
| 75 | 4 | 12 | unless defined $n |
| 76 | 4 | 12 | if $n < 1 |
| 78 | 4 | 8 | if ($n == 1) |
| 85 | 5 | 3 | if rand $i < 1 |
| 96 | 16 | 0 | if (@words < $n) { } |
| 102 | 0 | 0 | if rand $i < @words |
| 115 | 8 | 16 | if ($word eq $_[0]) |