| blib/lib/Petal/Utils/Substr.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 10 | 16 | 62.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 29 | 3 | 0 | 2 | $ellipsis and length $new_text >= $len - $start |
| line | l | !l | condition |
|---|---|---|---|
| 24 | 4 | 1 | $args[1] || 0 |
| 26 | 2 | 3 | $args[3] || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 19 | 5 | 0 | 0 | shift() || confess(q['create_href' expects 1 or 2 variables (got nothing)!]) |
| 22 | 5 | 0 | 0 | $args[0] || confess(q[1st arg to 'limit' should be a variable (got nothing)!]) |
| 25 | 3 | 2 | 0 | $args[2] || length $text |