Branch Coverage

lib/Lingua/EN/Ngram.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
27 7 2 if (%options)
31 1 6 if (scalar @keys != 1)
34 1 5 if ($options{'text'}) { }
4 1 elsif ($options{'file'}) { }
41 1 3 unless open F, $file
67 1 10 if ($text)
81 1 7 unless ($n)
82 1 6 if ($n =~ /\D/)
184 1 4 if (not %options) { }
187 1 3 if (scalar keys %options != 2) { }
0 3 elsif (not $options{'corpus'} && $options{'length'}) { }
192 1 2 if (ref $objects ne 'ARRAY')
195 1 1 if ($length =~ /\D/)
218 518 255430 if ($ngrams{$_} == $#$objects + 1)