Branch Coverage

blib/lib/CGI/Test/Form.pm
Criterion Covered Total %
branch 31 56 55.3


line true false branch
65 16 48 if defined $value
73 0 16 unless exists $this->{'action'}
476 17 2 if ($method eq 'GET') { }
2 0 elsif ($method eq 'POST') { }
478 0 17 unless $input->mime_type eq 'application/x-www-form-urlencoded'
575 323 48 if ($tag eq 'input') { }
16 32 elsif ($tag eq 'textarea') { }
32 0 elsif ($tag eq 'select') { }
0 0 elsif ($tag eq 'button') { }
0 0 elsif ($tag eq 'isindex') { }
586 16 16 $node->attr('multiple') || defined $node->attr('size') ? :
612 323 48 if (defined $hlookup)
615 0 323 unless (defined $type)
622 0 323 unless (defined $info)
653 16 0 if (@$radios)
659 16 0 if (@$checkboxes)
695 0 64 unless ref $wlist eq 'ARRAY'
700 64 0 if (@names == 1)
702 0 64 if wantarray
726 0 7 unless ref $wlist eq 'ARRAY'
748 0 36 unless ref $wlist eq 'ARRAY'
749 0 36 unless ref $code eq 'CODE'
774 0 0 if (ref $this->{'widgets'})
795 0 0 if ref $this->{'radio_groups'}
796 0 0 if ref $this->{'checkbox_groups'}
824 2 17 if ($enctype eq 'multipart/form-data') { }
831 0 17 if $enctype ne 'application/x-www-form-urlencoded'
871 15 4 unless defined $action->host_port