| blib/lib/Lingua/ZH/Summary.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 20 | 70.0 |
| line | true | false | branch |
|---|---|---|---|
| 58 | 0 | 1 | if (@_) |
| 80 | 0 | 1 | unless $text |
| 87 | 1 | 0 | unless (exists $options{'maxlength'} and $options{'maxlength'} > 0) |
| 108 | 0 | 25 | unless $flag |
| 109 | 0 | 25 | unless $flag = $punct{$punct} |
| 111 | 2 | 23 | unless length $chunk > 5 |
| 112 | 11 | 12 | unless $chunk =~ /.+(?:\x{662f}|\x{6703}|\x{66fe}|\x{5c07}|\x{80fd}|\x{6709}|\x{70ba})/ |
| 113 | 8 | 4 | unless $chunk =~ /$re/ |
| 114 | 1 | 3 | if $stop{substr $chunk, 0, 1} or $stop{substr $chunk, -1} |
| 118 | 0 | 3 | if length $summary >= $options{'maxlength'} |