Condition Coverage

blib/lib/Rose/HTML/Form.pm
Criterion Covered Total %
condition 56 100 56.0


and 3 conditions

line !l l&&!r l&&r condition
169 8 0 0 $value =~ /\d/ and $value == 1
325 8 0 0 exists $ENV{'MOD_PERL_API_VERSION'} && $ENV{'MOD_PERL_API_VERSION'} > 1
329 7 0 1 ($ENV{'MOD_PERL'} || $ENV{'RHTMLO_TEST_MOD_PERL'}) && (!exists $ENV{'MOD_PERL_API_VERSION'} || $ENV{'MOD_PERL_API_VERSION'} == 1)
406 17 0 140 @_ == 1 and ref $_[0] eq "HASH"
467 51 0 11 $self->form($nibble) and not $self->field($nibble)
553 1 2 1 @values == 1 and ref $values[0] eq "ARRAY"
691 24 6 2 $form->is_empty and $form->empty_is_ok
705 40 10 2 $self->is_empty and $self->empty_is_ok
793 213 240 48 not $name_exists and $field->isa("Rose::HTML::Form::Field::Compound")
828 0 0 0 $name_exists and $self->param($name) eq $field->html_attr("value")
973 0 0 0 $field->isa("Rose::HTML::Form::Field::Checkbox") and $meta->column($name)
0 0 0 $field->isa("Rose::HTML::Form::Field::Checkbox") and $meta->column($name) and $meta->column($name)->type eq "boolean"
1438 0 0 4 exists $self->{'forms'}{$name} and $self->{'forms'}{$name}->is_repeatable_form
1470 0 0 0 exists $self->{'forms'}{$name} and $self->{'forms'}{$name}->is_repeatable_field
1552 0 0 6 defined $old_name and defined $name
0 4 2 defined $old_name and defined $name and $name ne $old_name

or 2 conditions

line l !l condition
1862 0 5 $args{'tr'} ||= {}
1863 0 5 $args{'td'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
171 0 8 0 not $value or $value eq "compile"
8 0 0 not $value or $value eq "compile" or $value eq "runtime"
247 0 0 0 $_[0]->is_repeatable_form || $_[0]->is_repeatable_field
302 1 2 0 UNIVERSAL::isa($cgi, "CGI") or UNIVERSAL::can($cgi, "param")
485 5 78 19 index($name, $subname) == 0 or index($subname, $name) == 0
802 213 0 240 $name_exists or $name_attr_exists
213 1 239 $name_exists or $name_attr_exists or $moniker_exists
1 0 239 $name_exists or $name_attr_exists or $moniker_exists or $on_off
941 2 17 0 $object ||= $class->new
1282 1 0 13 $repeat_spec->{'empty_is_ok'} or $self->empty_is_ok
1321 28 14 30 $form->recursive_init_fields or $form->isa("Rose::HTML::Form::Repeatable")
1370 335 347 3355 $one->form_depth <=> $two->form_depth || $one->rank <=> $two->rank
1578 240 0 1129 $self->{'fields'}{$name} || $self->{'fields_by_name'}{$name}
1608 2 0 0 $field1 || $field2
1668 610 0 0 $self->field($_) or $fields->{$1}
1672 973 0 22 $fields->{$_} or $fields_by_name->{$_}