Branch Coverage

blib/lib/Data/FormValidator/Constraints/Upload.pm
Criterion Covered Total %
branch 0 52 0.0


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