| blib/lib/String/Elide/Tiny.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 19 | 22 | 86.3 |
| line | true | false | branch |
|---|---|---|---|
| 22 | 1 | 0 | if ($sym eq 'elide') { } |
| 30 | 0 | 25 | unless defined $str |
| 31 | 0 | 25 | unless defined $max_len |
| 33 | 1 | 24 | if $max_len <= 0 |
| 38 | 8 | 16 | if $str_len <= $max_len |
| 40 | 3 | 13 | defined $opts->{'marker'} ? : |
| 42 | 3 | 13 | if $max_len < $marker_len |
| 45 | 1 | 12 | if ($truncate eq 'left') { } |
| 2 | 10 | elsif ($truncate eq 'middle') { } | |
| 4 | 6 | elsif ($truncate eq 'ends') { } | |
| 54 | 3 | 1 | if ($max_len <= 2 * $marker_len) |