| blib/lib/Text/TFIDF/Ngram.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| branch | 23 | 24 | 95.8 | 
| line | true | false | branch | 
|---|---|---|---|
| 64 | 1 | 7 | unless $args->{'files'} | 
| 79 | 2 | 9 | if ($self->lowercase) | 
| 89 | 5 | 86 | if $self->stopwords and grep {$stop->{$_};} split(/\s+/, $p, 0) | 
| 92 | 73 | 13 | if $pat | 
| 96 | 19 | 67 | unless @p == $size | 
| 99 | 0 | 67 | if grep {$_ eq "'";} @p | 
| 101 | 17 | 50 | if $self->lowercase | 
| 112 | 1 | 14 | unless exists $self->counts->{$file} and exists $self->counts->{$file}{$phrase} | 
| 123 | 24 | 16 | if exists $self->counts->{$file}{$phrase} | 
| 126 | 2 | 18 | unless ($count) | 
| 138 | 6 | 8 | unless $idf | 
| 152 | 4 | 4 | if $seen{$phrase}++ or not defined $tfidf |