Branch Coverage

blib/lib/Imager/Search/Pattern.pm
Criterion Covered Total %
branch 20 38 52.6


line true false branch
80 2 4 if (&Params::Util::_IDENTIFIER($self->driver))
83 6 0 if (&Params::Util::_DRIVER($self->driver, 'Imager::Search::Driver'))
84 6 0 unless (&Params::Util::_INSTANCE($self->driver, 'Imager::Search::Driver'))
88 0 6 unless (&Params::Util::_INSTANCE($self->driver, 'Imager::Search::Driver'))
91 5 1 if (defined $self->file and not defined $self->image)
96 6 0 if (defined $self->image)
97 0 6 unless (&Params::Util::_INSTANCE($self->image, 'Imager'))
104 0 6 unless (&Params::Util::_POSINT($self->height))
107 0 6 unless (&Params::Util::_POSINT($self->width))
110 0 6 unless (&Params::Util::_ARRAY($self->lines))
116 0 6 if ($self->cache)
126 0 1 if (&Params::Util::_INSTANCE($_[0], 'IO::Handle')) { }
1 0 elsif (&Params::Util::_STRING($_[0])) { }
130 0 1 unless (&Params::Util::_INSTANCE($io, 'IO::File'))
172 0 6 if (&Params::Util::_INSTANCE($_[0], 'Imager')) { }
6 0 elsif (&Params::Util::_INSTANCE($_[0], 'Imager::Search::Image')) { }
0 0 elsif (&Params::Util::_POSINT($_[0])) { }
183 0 6 if ($self->cache and $$self{'regexp'}{$width})
191 0 6 if ($self->cache)