lib/Perlmazing/Perlmazing/Precompile/truncate_text.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 10 | 80.0 |
line | true | false | branch |
---|---|---|---|
5 | 0 | 39 | unless defined $str and length $str |
6 | 0 | 39 | unless &is_number($size) |
8 | 1 | 38 | if $length <= $size |
11 | 33 | 5 | if ((my $index = rindex($str, ' ')) != -1) |
12 | 28 | 5 | unless ($next eq ' ') |