Condition Coverage

blib/lib/Data/FormValidator/Constraints/Upload.pm
Criterion Covered Total %
condition 28 48 58.3


and 2 conditions

line l !l condition
212 0 0 "Failed to load filehandle for $field" && (return undef)

and 3 conditions

line !l l&&!r l&&r condition
187 4 0 6 $width <= $$max_width_ref && $height <= $$max_height_ref
199 1 1 2 ref $max_bytes_ref and defined $$max_bytes_ref
254 2 0 2 $width >= $min_width && $height >= $min_height
308 0 26 0 &Scalar::Util::blessed($q->{$field}) and $q->{$field}->isa('IO::File')

or 2 conditions

line l !l condition
39 5 0 shift() || die('image_max_dimensions: missing maximum width value')
40 5 0 shift() || die('image_max_dimensions: missing maximum height value')
58 2 0 shift() || die('image_min_dimensions: missing minimum width value')
59 2 0 shift() || die('image_min_dimensions: missing minimum height value')
71 5 3 shift() || {}
141 0 8 $self->meta($field) || {}
155 2 10 $params->{'mime_types'} ||= ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png']
166 10 0 shift() || die('image_max_dimensions: missing maximum width value')
167 10 0 shift() || die('image_max_dimensions: missing maximum height value')
183 0 10 $self->meta($field) || {}
218 2 2 $self->meta($field) || {}
229 4 0 shift() || die('image_min_dimensions: missing minimum width value')
231 4 0 shift() || die('image_min_dimensions: missing minimum height value')
250 2 2 $self->meta($field) || {}

or 3 conditions

line l !l&&r !l&&!r condition
93 8 0 0 $mm->checktype_filehandle($fh) || warn("$0: can't get filehandle for field named $field") && (return undef)
111 8 0 0 $fm_mt || $uploaded_mt