Branch Coverage

blib/lib/Image/Compare.pm
Criterion Covered Total %
branch 20 42 47.6


line true false branch
22 8 0 unless ($@)
54 19 1 if ($args{'image1'})
60 19 1 if ($args{'image2'})
66 19 1 if ($args{'method'})
72 5 15 if ($args{'mask'})
120 0 39 unless ($img)
125 39 0 if (ref $img)
126 39 0 if ($img->isa('Imager'))
137 0 0 if ($type)
145 0 0 if ($loaded_lwp and $img =~ m[^https?://]) { }
151 0 0 unless ($type)
162 0 0 unless $newimg->read(%args)
173 0 20 unless ($args{'method'})
176 0 20 if (ref $args{'method'}) { }
177 0 0 if ($args{'method'}->isa('Image::Compare::Comparator')) { }
188 0 20 unless ($class_map{$args{'method'}})
199 0 1 unless ($self->{'_CMP'})
200 0 0 wantarray ? :
209 2 16 if (ref $_[0] eq 'Image::Compare') { }
214 0 16 if ($_[0] eq 'Image::Compare')
225 0 54 unless $$self{"_$ref->[0]"}