| line |
true |
false |
branch |
|
59
|
2 |
0 |
if ($hsh{'file'}) { } |
|
|
0 |
0 |
elsif ($hsh{'face'}) { } |
|
63
|
0 |
2 |
if (defined $type) { } |
|
64
|
0 |
0 |
unless ($drivers{$type}) |
|
69
|
0 |
0 |
unless ($Imager::formats{$type}) |
|
77
|
0 |
4 |
unless my $re = $drivers{$drv}{'files'} |
|
78
|
3 |
1 |
if ($file =~ /$re/i) |
|
79
|
1 |
2 |
if (eval {
do {
require $drivers{$drv}{'module'};
1
}
} and not $drivers{$drv}{'checktype'} && !$Imager::formats{$drv}) |
|
86
|
1 |
1 |
unless (defined $type) |
|
94
|
2 |
3 |
if $driver->{'files'} and $file =~ /$driver->{'files'}/i |
|
96
|
1 |
0 |
if (@not_here) { } |
|
111
|
0 |
1 |
if ($drivers{$type}{'checktype'} and not $Imager::formats{$type}) |
|
125
|
0 |
0 |
if defined $_ |
|
133
|
0 |
0 |
unless ($input{'image'}) |
|
139
|
0 |
0 |
unless (defined $input{'string'}) |
|
150
|
0 |
0 |
unless (defined $input{'size'}) |
|
159
|
0 |
0 |
unless ($result) |
|
172
|
0 |
0 |
unless (exists $input{'image'}) |
|
180
|
0 |
0 |
unless (defined $text) |
|
190
|
0 |
0 |
unless $valign and $valign =~ /^(?:top|center|bottom|baseline)$/ |
|
194
|
0 |
0 |
unless $halign and $halign =~ /^(?:left|start|center|end|right)$/ |
|
200
|
0 |
0 |
if ($valign eq 'top') { } |
|
|
0 |
0 |
elsif ($valign eq 'center') { } |
|
|
0 |
0 |
elsif ($valign eq 'bottom') { } |
|
211
|
0 |
0 |
if ($halign eq 'left') { } |
|
|
0 |
0 |
elsif ($halign eq 'start') { } |
|
|
0 |
0 |
elsif ($halign eq 'center') { } |
|
|
0 |
0 |
elsif ($halign eq 'end') { } |
|
|
0 |
0 |
elsif ($halign eq 'right') { } |
|
229
|
0 |
0 |
if ($input{'image'}) |
|
231
|
0 |
0 |
unless $self->draw(%input, "x", $x, "y", $y, "align", 1) |
|
243
|
0 |
0 |
unless (exists $input{'string'}) |
|
251
|
0 |
0 |
unless my(@box) = $self->_bounding_box(%input) |
|
254
|
0 |
0 |
if (wantarray) { } |
|
255
|
0 |
0 |
if (@box and exists $input{'x'} and exists $input{'y'}) { } |
|
|
0 |
0 |
elsif (@box and $input{'canon'}) { } |
|
279
|
0 |
0 |
if (@_) |
|
296
|
0 |
0 |
unless ($hsh{'matrix'}) |
|
317
|
1 |
0 |
if (@_) |
|
331
|
1 |
4 |
unless defined $type |
|
334
|
1 |
3 |
unless defined $class |
|
337
|
3 |
0 |
if ($files) |
|
338
|
1 |
2 |
unless eval {
do {
qr/$files/
}
} |
|
342
|
0 |
2 |
if ($drivers{$type} and $drivers{$type}{'class'} ne $class) |
|
355
|
2 |
0 |
if $files |