Branch Coverage

blib/lib/SHARYANTO/String/Util.pm
Criterion Covered Total %
branch 30 34 88.2


line true false branch
70 1 1 unless defined $_
81 3 3 if (length $str <= $maxlen) { }
92 1 1 if ($$opts{'indent_blank_lines'} // 1) { }
109 4 16 $$opts{'zeropad'} && !($$opts{'skip_empty'} && !defined($2)) ? :
3 17 ++$i && $$opts{'skip_empty'} && !defined($2) ? :
123 3 4 if ($which) { }
131 1 6 if ($is_trunc and $w > $width) { }
134 1 5 if ($which eq 'l') { }
2 3 elsif ($which eq 'c') { }
162 3 1 unless /[^\040-\176]/
191 0 6 unless @_
196 0 9 if (length $_ < $i) { }
199 3 6 if substr($_, $i, 1) ne substr($_[0], $i, 1)
209 0 6 unless @_
214 0 9 if (length $_ < $i) { }
217 3 6 if substr($_, -($i + 1), 1) ne substr($_[0], -($i + 1), 1)
221 2 4 $i ? :