| blib/lib/Template/Plugin/Filter/VisualTruncate.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 16 | 81.2 |
| line | true | false | branch |
|---|---|---|---|
| 62 | 2 | 2 | if ($name =~ /^utf[-]{0,1}8$/i) { } |
| 1 | 1 | elsif ($name =~ /^euc[-]{0,1}jp$/i) { } | |
| 1 | 0 | elsif ($name =~ /^locale$/i) { } | |
| 75 | 0 | 4 | unless $class->require |
| 105 | 27 | 9 | defined $$args[1] ? : |
| 110 | 3 | 33 | if $text_width <= $len |
| 112 | 6 | 27 | if $tail_width >= $len |
| 116 | 0 | 27 | if ($utf8_bool and not utf8::is_utf8($result)) |