Condition Coverage

blib/lib/Rose/HTML/Form/Field.pm
Criterion Covered Total %
condition 62 101 61.3


and 3 conditions

line !l l&&!r l&&r condition
271 1512 38 0 index($name, ".") >= 0 and not $self->isa("Rose::HTML::Form::Field::Hidden")
279 597 950 3 defined $old_name and $name ne $old_name
373 11 1030 170 not $parent->{'in_init'} and $parent->_is_full
390 2952 0 0 wantarray and ref $value eq "ARRAY"
446 797 470 2 wantarray and ref $self->{'internal_value'} eq "ARRAY"
477 1044 998 2 wantarray and ref $final_value eq "ARRAY"
506 53 267 0 wantarray and ref $self->{'output_value'} eq "ARRAY"
589 0 0 1 ref $input_filter and $input_filter eq $self->output_filter
693 4 0 935 $self->html_element and $self->apply_error_class
4 934 1 $self->html_element and $self->apply_error_class and defined $self->error
713 4 0 446 $self->html_element and $self->apply_error_class
4 444 2 $self->html_element and $self->apply_error_class and defined $self->error
829 159 55 0 $self->required and !ref($value) && (!defined($value) || $self->trim_spaces && !($value =~ /\S/)) || ref $value eq 'ARRAY' && !@$value
833 0 21 0 $self->is_empty and $self->empty_is_ok
920 19 0 6 ref $args eq "HASH" and keys %$args
0 19 0 ref $args eq "ARRAY" and @$args
935 1 0 0 ref $args eq "HASH" and keys %$args
0 1 0 ref $args eq "ARRAY" and @$args
1045 0 2073 1593 $invocant->can("parent_group") and my $parent_group = $invocant->parent_group

or 2 conditions

line l !l condition
913 51 39 $args{'args'} || []

or 3 conditions

line l !l&&r !l&&!r condition
187 0 0 0 $self->parent_field || $self->parent_form
192 0 0 0 $parent->parent_field || $parent->parent_form
258 2154 1215 0 $self->parent_field or $self->parent_form
384 11 58 2952 $self->is_cleared or $self->has_partial_value
442 3939 48 3313 $self->is_cleared or $self->has_partial_value
521 301 0 3304 $value =~ /\S/ || !$self->trim_spaces && length $value
774 369 37 0 $self->{'label_object'} ||= ref($self)->object_type_class_loaded("label")->new
829 2 0 34 !ref($value) && (!defined($value) || $self->trim_spaces && !($value =~ /\S/)) || ref $value eq 'ARRAY' && !@$value
867 1 0 1 $ok or $self->has_errors
912 88 2 0 $args{'msg_class'} || $self->localizer->message_class
920 6 0 19 ref $args eq "HASH" and keys %$args or ref $args eq "ARRAY" and @$args
935 0 0 1 ref $args eq "HASH" and keys %$args or ref $args eq "ARRAY" and @$args
1002 0 0 0 $localizer || $class->default_localizer
1075 2073 0 0 $locale || $class->default_locale