blib/lib/Algorithm/NGram.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 17 | 26 | 65.3 |
line | true | false | branch |
---|---|---|---|
123 | 0 | 16 | unless $tok |
188 | 1 | 59 | if $tok_idx_end > @all_tokens |
195 | 6 | 54 | unless $next_tok and @tokens |
198 | 3 | 51 | if $tokens[0] eq ':ENDTOK:' |
237 | 1 | 0 | if $self->dirty and not $opts{'no_analyze'} |
246 | 8 | 1 | if $tok ne ':STARTTOK:' |
266 | 0 | 9 | unless %{$self->token_table;} |
269 | 0 | 9 | unless defined $tok_next |
294 | 0 | 9 | unless $tok_count <= $self->ngram_width |
340 | 0 | 1 | unless $str |
342 | 0 | 1 | unless my $save = Storable::thaw($str) |
347 | 0 | 1 | unless my $width = $$save{'ngram_width'} |
355 | 1 | 0 | if $ngram |