Branch Coverage

blib/lib/HTTP/Request/Form.pm
Criterion Covered Total %
branch 0 172 0.0


line true false branch
36 0 0 if (ref $self)
38 0 0 if ($tag eq 'input' or $tag eq 'button' and $start) { }
0 0 elsif ($tag eq 'textarea' and $start) { }
0 0 elsif ($tag eq 'select' and $start) { }
41 0 0 unless defined $type
42 0 0 if ($type eq 'hidden') { }
0 0 elsif ($type eq 'submit' or $type eq 'reset' or $type eq 'image') { }
53 0 0 if (defined $name)
54 0 0 if (not defined $buttonvals{$name}) { }
66 0 0 if ($type eq 'radio') { }
0 0 elsif ($type eq 'checkbox') { }
67 0 0 unless (defined $fieldtypes{$name})
72 0 0 if (not defined $selections{$name}) { }
77 0 0 if $self->attr('checked')
83 0 0 if ($self->attr('checked')) { }
94 0 0 if ($type eq 'file')
103 0 0 if ($self->content)
105 0 0 ref $o ? :
113 0 0 unless $self->content
114 0 0 if (ref $o)
116 0 0 if ($tag eq 'option')
117 0 0 if ($o->attr('selected'))
120 0 0 if (not defined $selections{$name}) { }
132 0 0 $form->tag eq 'isindex' ? :
136 0 0 if (defined $form->attr('method')) { }
177 0 0 if (ref $self)
179 0 0 if ($tag eq 'form' or $tag eq 'isindex') { }
0 0 elsif ($tag eq 'input' or $tag eq 'button' and $start) { }
0 0 elsif ($tag eq 'textarea' and $start) { }
0 0 elsif ($tag eq 'select' and $start) { }
180 0 0 if ($start)
183 0 0 if (defined $self->attr('method')) { }
207 0 0 if ($tag eq 'isindex')
227 0 0 unless ($start)
230 0 0 if @form_stack
248 0 0 unless defined $type
249 0 0 if ($type eq 'hidden') { }
0 0 elsif ($type eq 'submit' or $type eq 'reset' or $type eq 'image') { }
260 0 0 if (defined $name)
261 0 0 if (not defined $$buttonvals{$name}) { }
273 0 0 if ($type eq 'radio') { }
0 0 elsif ($type eq 'checkbox') { }
274 0 0 unless (defined $$fieldtypes{$name})
279 0 0 if (not defined $$selections{$name}) { }
284 0 0 if $self->attr('checked')
290 0 0 if ($self->attr('checked')) { }
301 0 0 if ($type eq 'file')
311 0 0 if ($o->can('as_HTML')) { }
323 0 0 if (ref $o)
325 0 0 if ($tag eq 'option')
326 0 0 if ($o->attr('selected'))
329 0 0 if (not defined $$selections{$name}) { }
385 0 0 if (defined $value) { }
404 0 0 if (defined $self->field_selection($name)) { }
413 0 0 unless defined $$self{'checkboxstate'}{$name}
419 0 0 unless defined $$self{'checkboxstate'}{$name}
425 0 0 unless defined $$self{'checkboxstate'}{$name}
426 0 0 if ($$self{'checkboxstate'}{$name}) { }
440 0 0 if (defined $$self{'checkboxstate'}($name)) { }
459 0 0 if (defined $value) { }
473 0 0 if (defined $self->button($button)) { }
482 0 0 if (defined $value) { }
493 0 0 if (ref $bnum)
500 0 0 if ($self->field_type($i) eq 'input/checkbox') { }
0 0 elsif ($self->field_type($i) eq 'select') { }
0 0 elsif ($self->field_type($i) eq 'input/file') { }
501 0 0 if ($self->checkbox_ischecked($i))
506 0 0 if (defined $self->field($i))
518 0 0 if (defined $button)
519 0 0 unless defined $self->button($button)
521 0 0 if (defined $bnum) { }
522 0 0 if (@{$self->button_type($button);}[$bnum] eq 'image') { }
529 0 0 if (@{$self->button_type($button);}[0] eq 'image') { }
538 0 0 if (defined $self->base)
541 0 0 if ($$self{'debug'})
544 0 0 if ($$self{'isindex'}) { }
0 0 elsif (uc $self->method eq 'POST') { }
0 0 elsif (uc $self->method eq 'GET') { }
549 0 0 if ($$self{'upload'}) { }
550 0 0 if (defined $referer) { }
559 0 0 if (defined $referer) { }
576 0 0 if (defined $self->field($i)) { }
581 0 0 if ($self->is_selection($i))
586 0 0 if (defined $self->button($i)) { }
587 0 0 $_ ? :
591 0 0 if (defined $self->button_type($i))