Branch Coverage

blib/lib/Data/FormValidator/Constraints/Upload.pm
Criterion Covered Total %
branch 25 52 48.0


line true false branch
69 0 8 unless $self->isa('Data::FormValidator::Results')
83 0 8 unless ($fh)
84 0 0 if warn "$0: can't get filehandle for field named $field"
104 0 8 if $fm_mt eq 'application/octet-stream'
111 0 8 unless my $mt = $fm_mt || $uploaded_mt
117 8 0 $t ? :
124 8 0 if (scalar @mt_exts) { }
126 6 2 if (grep {/^$uploaded_ext$/;} @mt_exts) { }
164 0 10 unless $self->isa('Data::FormValidator::Results')
170 0 10 unless $max_width > 0
171 0 10 unless $max_height > 0
177 0 10 unless ($width)
193 0 4 unless $self->isa('Data::FormValidator::Results')
199 2 2 if (ref $max_bytes_ref and defined $$max_bytes_ref) { }
212 0 4 unless ($fh)
227 0 4 unless $self->isa('Data::FormValidator::Results')
237 0 4 unless $min_width > 0
238 0 4 unless $min_height > 0
244 0 4 unless ($width)
273 0 14 unless ($fh)
284 0 14 unless ($width)
308 0 26 if (&Scalar::Util::blessed($q->{$field}) and $q->{$field}->isa('IO::File')) { }
325 8 0 if ($q->isa('CGI'))
329 8 0 if ($q->uploadInfo($fn))
336 0 0 if ($q->isa('CGI::Simple'))
341 0 0 if ($q->isa('Apache::Request'))