Condition Coverage

blib/lib/XAO/DO/Web/FilloutForm.pm
Criterion Covered Total %
condition 4 252 1.5


and 3 conditions

line !l l&&!r l&&r condition
167 0 0 0 $fields and ref $fields
185 0 0 0 $values and $values->{$name}
264 0 0 0 defined $cgivalue and not $dont_sanitize
270 0 0 0 defined $fdata->{'phase'} and $phase < $fdata->{'phase'}
290 0 0 0 not length $value and $fdata->{'required'}
0 0 0 $fdata->{'maxlength'} and length $value > $fdata->{'maxlength'}
0 0 0 $fdata->{'minlength'} and length $value
0 0 0 $fdata->{'minlength'} and length $value and length $value < $fdata->{'minlength'}
312 0 0 0 length $value and not $value =~ m[^[\w\.\+/\$\%\&\`{}'=-]+\@([a-z0-9-]+\.)+[a-z]+$]i
365 0 0 0 defined $fdata->{'minvalue'} and $value < $fdata->{'minvalue'}
369 0 0 0 defined $fdata->{'maxvalue'} and $value > $fdata->{'maxvalue'}
383 0 0 0 defined $fdata->{'minvalue'} and $value < $fdata->{'minvalue'}
387 0 0 0 defined $fdata->{'maxvalue'} and $value > $fdata->{'maxvalue'}
398 0 0 0 length $value and $fdata->{'pair'}
0 0 0 length $value and $fdata->{'pair'} and $value ne $cgi->param($fdata->{'pair'})
410 0 0 0 length $value and not $match
423 0 0 0 length $value and not $match
434 0 0 0 length $value and not $match
453 0 0 0 $fdata->{'minyear'} and $fdata->{'maxyear'}
522 0 0 0 $have_submit && $have_cgivalues
0 0 0 $newerr and not $have_submit && $have_cgivalues
531 0 0 0 $style eq "year" and not $fdata->{'maxlength'}
0 0 0 $style eq "year" and not $fdata->{'maxlength'} and $fdata->{'minyear'}
0 0 0 $style eq "year" and not $fdata->{'maxlength'} and $fdata->{'minyear'} and $fdata->{'maxyear'}
563 0 0 0 defined $_[0] && length $_[0] && length $_[1] && $_[0] == $_[1]
572 0 0 0 defined $_[0] && length $_[0] && length $_[1] && $_[0] == $_[1]
638 0 0 0 defined $v and length $v
731 0 0 0 $have_submit and $have_cgivalues
0 0 0 $have_submit and $have_cgivalues and not $errstr
773 0 0 0 $have_submit and $have_cgivalues
786 0 0 0 $have_submit && $have_cgivalues
789 0 0 0 $errstr and $have_cgivalues
804 0 0 0 $keep_form and not $errstr
0 0 0 $keep_form and not $errstr and $have_cgivalues
0 0 0 $keep_form and not $errstr and $have_cgivalues and $have_submit
1378 2 1 0 $type and not lc($type) =~ /$realtype/

or 2 conditions

line l !l condition
148 0 0 $args->{'values'} || {}
342 0 0 $e ||= ""
418 0 0 $value || ''
580 0 0 $fdata->{'value'} || ''
0 0 $newerr || ''
597 0 0 $fdata->{'maxlength'} || 100
0 0 $fdata->{'size'} || 30
607 0 0 $fdata->{'size'} || 30
0 0 $fdata->{'rows'} || 8
615 0 0 $fdata->{'size'} || 30
625 0 0 $fdata->{'maxlength'} || 100
0 0 $fdata->{'size'} || 30
0 0 $newerr || ''
694 0 0 $newerr || ''
719 0 0 $fdata->{'html'} || ''
721 0 0 $fdata->{'size'} || 30
722 0 0 $fdata->{'rows'} || 1
723 0 0 $fdata->{'maxlength'} || 100
724 0 0 $fdata->{'minlength'} || 0
725 0 0 $fdata->{'errstr'} || ''
734 0 0 $rc[0] || ''
738 0 0 $rc[$i] || ''
768 0 0 $formparams{'ERRSTR.CHECK_FORM'} ||= ""
800 0 0 $et || ''
0 0 $eh || ''
1417 0 0 $self->{'phase'} || 1
1425 0 1 shift() || {}

or 3 conditions

line l !l&&r !l&&!r condition
93 0 1 0 ref $proto || $proto
240 0 0 0 $cgi->param($self->{'submit_name'}) || $cgi->param($self->{'submit_name'} . '.x') || $cgi->param($self->{'submit_name'} . '.y')
253 0 0 0 $self->{'dont_sanitize'} || $args->{'dont_sanitize'}
288 0 0 0 $fdata->{'style'} || $fdata->{'type'} || $self->throw("display - no style or type in field '${name}'")
290 0 0 0 $style eq "int" or $style eq "integer"
0 0 0 $style eq "int" or $style eq "integer" or $style eq "number"
0 0 0 $style eq "usstate" or $style eq "uscontst"
447 0 0 0 $value < 1 or $value > 12
470 0 0 0 $value < 1900 or $value > 2099
528 0 0 0 $fdata->{'param'} || uc $name
531 0 0 0 $style eq "usstate" or $style eq "uscontst"
0 0 0 $style eq "text" or $style eq "phone"
0 0 0 $style eq "text" or $style eq "phone" or $style eq "usphone"
0 0 0 $style eq "text" or $style eq "phone" or $style eq "usphone" or $style eq "ccnum"
0 0 0 $style eq "text" or $style eq "phone" or $style eq "usphone" or $style eq "ccnum" or $style eq "email"
0 0 0 $style eq "text" or $style eq "phone" or $style eq "usphone" or $style eq "ccnum" or $style eq "email" or $style eq "year"
0 0 0 $style eq "text" or $style eq "phone" or $style eq "usphone" or $style eq "ccnum" or $style eq "email" or $style eq "year" or $style eq "number"
0 0 0 $style eq "text" or $style eq "phone" or $style eq "usphone" or $style eq "ccnum" or $style eq "email" or $style eq "year" or $style eq "number" or $style eq "int"
0 0 0 $style eq "text" or $style eq "phone" or $style eq "usphone" or $style eq "ccnum" or $style eq "email" or $style eq "year" or $style eq "number" or $style eq "int" or $style eq "integer"
0 0 0 $style eq "text" or $style eq "phone" or $style eq "usphone" or $style eq "ccnum" or $style eq "email" or $style eq "year" or $style eq "number" or $style eq "int" or $style eq "integer" or $style eq "real"
580 0 0 0 $fdata->{'htmlid'} || $name
585 0 0 0 $fdata->{'options'} || $self->throw("display - no 'options' for '${name}' selection")
707 0 0 0 $fdata->{'text'} || $name
717 0 0 0 $fdata->{'text'} || $name
743 0 0 0 $fdata->{'param'} || uc $fdata->{'name'}
776 0 0 0 $fdata->{'param'} || uc $fdata->{'name'}
786 0 0 0 not $have_submit && $have_cgivalues or $errstr
0 0 0 not $have_submit && $have_cgivalues or $errstr or $keep_form
827 0 0 0 $self->{'fields'} || $self->throw('field_desc - has not set fields for FilloutForm')
855 0 0 0 $self->{'fields'} || $self->throw('field_names - has not set fields for FilloutForm')