Branch Coverage

blib/lib/Imager/Font/Wrap.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
29 0 0 if ($state->{'bottom'} and $state->{'linepos'} + $box->font_height > $state->{'bottom'})
35 0 0 if ($text =~ /\S/ and $state->{'im'})
37 0 0 $state->{'justify'} eq 'fill' ? :
0 0 $fill ? :
38 0 0 if ($justify ne 'fill') { }
40 0 0 if ($justify eq 'right') { }
0 0 elsif ($justify eq 'center') { }
58 0 0 if ($text =~ s/^(\S+)//) { }
0 0 elsif ($text =~ s/^( +)//) { }
95 0 0 unless (defined $width)
96 0 0 unless defined $im and $im->getwidth > $x
101 0 0 unless my $font = delete $input{'font'}
103 0 0 unless defined $size
106 0 0 unless 2 * $size < $width
110 0 0 unless defined $text
129 0 0 if ($state{'height'})
139 0 0 if ($text =~ /\G( +)/cg) { }
0 0 elsif ($text =~ /\G(?:\x0D\x0A?|\x0A\x0D?)/cg) { }
0 0 elsif ($text =~ /\G(\S+)/cg) { }
0 0 elsif ($text =~ /\G\s/cg) { }
146 0 0 unless _format_line(\%state, $spaces, $line, 0)
156 0 0 if ($bbox->advance_width > $width)
157 0 0 unless _format_line(\%state, $spaces, $line, 1)
175 0 0 unless _format_line(\%state, 0, substr($line, 0, $len), 0)
189 0 0 if (length $line and not $state{'full'})
190 0 0 if _format_line(\%state, 0, $line, 0)
194 0 0 if ($input{'savepos'})