| lib/Lingua/EN/Ngram.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 27 | 28 | 96.4 |
| line | true | false | branch |
|---|---|---|---|
| 28 | 7 | 2 | if (%options) |
| 32 | 1 | 6 | if (scalar @keys != 1) |
| 35 | 1 | 5 | if ($options{'text'}) { } |
| 4 | 1 | elsif ($options{'file'}) { } | |
| 42 | 1 | 3 | unless open F, $file |
| 68 | 1 | 10 | if ($text) |
| 82 | 1 | 7 | unless ($n) |
| 83 | 1 | 6 | if ($n =~ /\D/) |
| 185 | 1 | 4 | if (not %options) { } |
| 188 | 1 | 3 | if (scalar keys %options != 2) { } |
| 0 | 3 | elsif (not $options{'corpus'} && $options{'length'}) { } | |
| 193 | 1 | 2 | if (ref $objects ne 'ARRAY') |
| 196 | 1 | 1 | if ($length =~ /\D/) |
| 219 | 492 | 255574 | if ($ngrams{$_} == $#$objects + 1) |