Branch Coverage

blib/lib/GD/SecurityImage.pm
Criterion Covered Total %
branch 4 124 3.2


line true false branch
26 0 4 @args % 2 ? :
31 0 4 if (exists $opt{'use_magick'} and $opt{'use_magick'}) { }
0 4 elsif (exists $opt{'backend'} and $opt{'backend'}) { }
38 0 0 if $@
39 0 0 $opt{'backend'} eq 'AC' ? :
52 1 0 unless $GD::SecurityImage::BACKEND
53 0 0 @args % 2 ? :
72 0 0 if ($opt{'text_location'} and ref $opt{'text_location'} and ref $opt{'text_location'} eq 'HASH') { }
85 0 0 if ($$self{'angle'})
86 0 0 if $$self{'angle'} < 0
87 0 0 if ($$self{'angle'} > 360)
92 0 0 if ($$self{'scramble'})
93 0 0 if ($$self{'angle'}) { }
113 0 0 defined $opt{'frame'} ? :
140 0 0 unless -d $dir
142 0 0 unless opendir $DIR, $dir
147 0 0 if -d $file
148 0 0 if $file =~ / \A [.] /msx
149 0 0 if $file =~ / \A (Styles|AC|Handler)[.]pm \z/msx
155 0 0 if defined wantarray
162 0 0 unless print $report
168 0 0 unless $$self{'IS_GD'}
185 0 0 if ($user and length $user >= $$self{'_RNDMAX_'}) { }
195 0 0 defined wantarray ? :
203 0 0 unless $$self{'IS_CORE'}
208 0 0 if $magick_ok
215 0 0 if ($color_code)
216 0 0 if ($$self{'IS_MAGICK'})
226 0 0 @rgb && $$self{'IS_MAGICK'} ? :
233 0 0 if @rgb
235 0 0 if (not $data && ref $data or ref $data ne 'ARRAY' or $#{$data;} != 2)
239 0 0 if ($$data[$i] > 255 or $$data[$i] < 0)
245 0 0 $$self{'IS_MAGICK'} ? :
255 0 0 if $style eq 'box'
262 0 0 unless ($$self{'IS_MAGICK'})
263 0 0 if $self->_versionlt('1.20')
266 0 0 if ($method eq 'normal' and not $$self{'gd_font'})
270 0 0 $self->can('style_' . $style) ? :
272 0 0 unless $$self{'send_ctobg'}
274 0 0 if $$self{'send_ctobg'}
276 0 0 if ($$self{'frame'})
284 0 0 defined wantarray ? :
290 0 0 unless $$self{'_CREATECALLED_'}
291 0 0 $$self{'height'} > $$self{'width'} ? :
296 0 0 unless ($int)
321 0 0 defined wantarray ? :
336 0 0 unless $$self{'_CREATECALLED_'}
337 0 0 @args % 2 ? :
338 0 0 unless %o
341 0 0 if $o{'scolor'}
351 0 0 if $o{'text'}
352 0 0 if $o{'color'}
353 0 0 if $o{'ptsize'}
376 0 0 $$c{'text'} ? :
377 0 0 $$tl{'scolor'} ? :
378 0 0 $$tl{'x'} eq 'left' ? :
380 0 0 $$self{'IS_MAGICK'} ? :
383 0 0 $up ? :
384 0 0 $up ? :
391 0 0 if @args != 3
401 0 0 if ref $color
403 0 0 @rgb ? :