Branch Coverage

blib/lib/Imager/DTP/Textbox.pm
Criterion Covered Total %
branch 0 104 0.0


line true false branch
29 0 0 if (defined $o{'text'})
33 0 0 if ($o{'xscale'} or $o{'yscale'})
43 0 0 if ($o{'target'} and not ref($o{'target'}) =~ /^Imager(::.+)?$/)
46 0 0 unless $o{'x'}
47 0 0 unless $o{'y'}
53 0 0 if ($o{'target'}) { }
59 0 0 unless my $tmp = 'Imager'->new('xsize', $self->_getWidth, 'ysize', $self->_getHeight, 'channels', 3)
61 0 0 unless $o{'bgcolor'}
96 0 0 unless $wrapMax
101 0 0 if ($wrapMax and $wrapMax < $lineMax)
110 0 0 if ($nowMax > $wrapMax)
114 0 0 if $wi == $#{$letters;}
115 0 0 if $wi < $#{$letters;}
119 0 0 if ($exceeded)
122 0 0 if ($wi == 0 and $#{$letters;} > 0) { }
0 0 elsif ($wi == 0 and $#{$letters;} == 0) { }
137 0 0 $wi > 0 ? :
140 0 0 if ($li == $#{$lines;}) { }
149 0 0 if ($$laterLine{'isWrap'} == 1) { }
188 0 0 unless $o{'letters'}[$o{'wi'}]->getText =~ /$pattern/
193 0 0 if $t =~ /\s/ or not $t =~ /$pattern/
197 0 0 if ($i + 1 == 0) { }
202 0 0 if $t =~ /\s/ or not $t =~ /$pattern/
214 0 0 if @{$o{'exceed'};} == 0
216 0 0 if ($firstLetter->getText =~ /\s/)
226 0 0 unless $wrapMax
235 0 0 if ($nowMax > $wrapMax)
239 0 0 if $li < $#{$lines;}
243 0 0 if ($exceed)
244 0 0 $li == 0 ? :
267 0 0 if (not defined $o{'text'} or $o{'text'} eq '')
274 0 0 if (@{$$self{'lines'};} > 0)
277 0 0 unless defined $o{'wspace'}
278 0 0 if not defined $o{'font'} and scalar @{$letters;} > 0
281 0 0 unless (ref($o{'font'}) =~ /^Imager::Font(::.+)?$/)
285 0 0 unless $o{'add'}
289 0 0 $t ? :
290 0 0 if ($len > 0)
294 0 0 $t ? :
296 0 0 if ($len > 0)
299 0 0 if scalar @lineTexts == 0
302 0 0 if ($i == 0 and $lastLine and $o{'add'}) { }
322 0 0 if ($o{'width'} and not $o{'width'} =~ /^\d+$/)
325 0 0 if ($o{'height'} and not $o{'height'} =~ /^\d+$/)
328 0 0 if $o{'width'}
329 0 0 if $o{'height'}
337 0 0 if ($o{'halign'} and not $o{'halign'} =~ /^(left|center|right)$/)
340 0 0 if ($o{'valign'} and not $o{'valign'} =~ /^(top|center|bottom)$/)
344 0 0 if $o{'halign'}
345 0 0 if $o{'valign'}
352 0 0 if ($o{'percent'} and not $o{'percent'} =~ /^\d+$/)
355 0 0 if $o{'percent'}