| blib/lib/Lingua/TermWeight.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 28 | 57.1 |
| line | true | false | branch |
|---|---|---|---|
| 39 | 0 | 8 | unless exists $args{'document'} |
| 47 | 0 | 8 | unless ref $iter eq "CODE" |
| 55 | 5 | 3 | unless $normalize |
| 57 | 0 | 3 | unless %$tf |
| 60 | 0 | 3 | unless $total_words |
| 67 | 0 | 3 | unless exists $args{'documents'} |
| 70 | 0 | 3 | unless ref $documents eq "ARRAY" |
| 73 | 0 | 3 | if @$documents == 0 |
| 78 | 2 | 1 | ref $documents->[0] ? : |
| 82 | 0 | 6 | unless ref $tf eq "HASH" |
| 90 | 0 | 141 | unless $num_documents_including_word |
| 99 | 0 | 2 | unless exists $args{'documents'} |
| 104 | 0 | 2 | unless ref $documents eq "ARRAY" |
| 107 | 0 | 2 | if @$documents == 0 |