Condition Coverage

blib/lib/XAO/DO/Web/FilloutForm.pm
Criterion Covered Total %
condition 4 270 1.4


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}
265 0 0 0 defined $cgivalue and not $dont_sanitize
271 0 0 0 defined $fdata->{'phase'} and $phase < $fdata->{'phase'}
291 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'}
313 0 0 0 length $value and not $value =~ m[^[\w\.\+/\$\%\&\`{}'=-]+\@([a-z0-9-]+\.)+[a-z]+$]i
366 0 0 0 defined $fdata->{'minvalue'} and $value < $fdata->{'minvalue'}
370 0 0 0 defined $fdata->{'maxvalue'} and $value > $fdata->{'maxvalue'}
384 0 0 0 defined $fdata->{'minvalue'} and $value < $fdata->{'minvalue'}
388 0 0 0 defined $fdata->{'maxvalue'} and $value > $fdata->{'maxvalue'}
399 0 0 0 length $value and $fdata->{'pair'}
0 0 0 length $value and $fdata->{'pair'} and $value ne $cgi->param($fdata->{'pair'})
411 0 0 0 length $value and not $match
424 0 0 0 length $value and not $match
435 0 0 0 length $value and not $match
454 0 0 0 $fdata->{'minyear'} and $fdata->{'maxyear'}
523 0 0 0 $have_submit && $have_cgivalues
0 0 0 $newerr and not $have_submit && $have_cgivalues
556 0 0 0 $have_submit and $have_cgivalues
0 0 0 $have_submit and $have_cgivalues and not $errstr
598 0 0 0 $have_submit and $have_cgivalues
621 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'}
653 0 0 0 defined $_[0] && length $_[0] && length $_[1] && $_[0] == $_[1]
662 0 0 0 defined $_[0] && length $_[0] && length $_[1] && $_[0] == $_[1]
728 0 0 0 defined $v and length $v
801 0 0 0 $have_submit && $have_cgivalues
804 0 0 0 $errstr and $have_cgivalues
819 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
1393 2 1 0 $type and not lc($type) =~ /$realtype/

or 2 conditions

line l !l condition
148 0 0 $args->{'values'} || {}
343 0 0 $e ||= ""
419 0 0 $value || ''
546 0 0 $fdata->{'size'} || 30
547 0 0 $fdata->{'rows'} || 1
548 0 0 $fdata->{'maxlength'} || 100
549 0 0 $fdata->{'minlength'} || 0
550 0 0 $fdata->{'errstr'} || ''
559 0 0 $rc[0] || ''
563 0 0 $rc[$i] || ''
593 0 0 $formparams{'ERRSTR.CHECK_FORM'} ||= ""
671 0 0 $fdata->{'value'} || ''
0 0 $fdata->{'errstr'} // ""
688 0 0 $value // ""
0 0 $fdata->{'maxlength'} || 100
0 0 $fdata->{'size'} || 30
0 0 $fdata->{'errstr'} // ""
698 0 0 $value // ""
0 0 $fdata->{'size'} || 30
0 0 $fdata->{'rows'} || 8
0 0 $fdata->{'errstr'} // ""
706 0 0 $fdata->{'size'} || 30
0 0 $fdata->{'errstr'} // ""
716 0 0 $value // ""
0 0 $fdata->{'maxlength'} || 100
0 0 $fdata->{'size'} || 30
0 0 $fdata->{'errstr'} // ""
789 0 0 $value // ""
793 0 0 $fdata->{'html'} || ''
815 0 0 $et || ''
0 0 $eh || ''
1432 0 0 $self->{'phase'} || 1
1440 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'}
257 0 0 0 $fdata->{'param'} || uc $name
289 0 0 0 $fdata->{'style'} || $fdata->{'type'} || $self->throw("display - no style or type in field '${name}'")
291 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"
448 0 0 0 $value < 1 or $value > 12
471 0 0 0 $value < 1900 or $value > 2099
531 0 0 0 $fdata->{'text'} || $name
543 0 0 0 $fdata->{'text'} || $name
568 0 0 0 $fdata->{'param'} || uc $fdata->{'name'}
601 0 0 0 $fdata->{'param'} || uc $fdata->{'name'}
612 0 0 0 $fdata->{'param'} || uc $name
616 0 0 0 $fdata->{'style'} || $fdata->{'type'} || $self->throw("- no style or type in field '${name}'")
621 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"
671 0 0 0 $fdata->{'htmlid'} || $name
675 0 0 0 $fdata->{'options'} || $self->throw("display - no 'options' for '${name}' selection")
801 0 0 0 not $have_submit && $have_cgivalues or $errstr
0 0 0 not $have_submit && $have_cgivalues or $errstr or $keep_form
842 0 0 0 $self->{'fields'} || $self->throw('field_desc - has not set fields for FilloutForm')
870 0 0 0 $self->{'fields'} || $self->throw('field_names - has not set fields for FilloutForm')