Branch Coverage

blib/lib/Text/Wrap/Smart.pm
Criterion Covered Total %
branch 14 16 87.5


line true false branch
64 2 8 unless length $text
78 2 18 unless length $text
113 77 18 @offsets ? :
115 18 77 $begin == $start_offset ? :
116 18 77 if $index == -1
126 35 42 if (defined $space_prev and substr($text, $begin, $space_prev - $begin) =~ / /) { }
140 77 0 if ($text =~ /\G(.{$range}) (?=[^ ])/g)
145 18 0 if $text =~ /\G(.+)$/