Condition Coverage

blib/lib/Data/MuForm/Field.pm
Criterion Covered Total %
condition 36 60 60.0


and 3 conditions

line !l l&&!r l&&r condition
16 0 79 0 $self->form and $self->form->can('build_field_id')
27 0 80 0 $self->form && $self->form->field_prefix
183 15 1468 550 defined $parent_name and length $parent_name
200 0 0 0 defined $parent_accessor and length $parent_accessor
430 523 87 0 $self->has_fields and $self->skip_fields_without_input
610 0 0 $self->has_fields and $self->skip_fields_without_input and not $self->has_input
435 8 16 50 $self->has_input && $self->input_defined
536 50 24 $self->required || $self->has_required_when && $self->match_when($self->required_when) and not $self->has_input && $self->input_defined
541 79 2 14 $tobj->has_coercion and $tobj->validate($value)
751 24 37 1 $self->has_form and $self->form->_has_form_message($msg)

or 2 conditions

line l !l condition
257 87 0 $self->errors || []
759 0 0 $self->messages || {}
760 0 0 $self->my_class_messages || {}

or 3 conditions

line l !l&&r !l&&!r condition
85 81 2 478 ref $_ or not defined $_
435 71 0 539 $self->required || $self->has_required_when && $self->match_when($self->required_when)
450 1 1 14 $self->no_value_if_empty or $self->is_contains
463 528 0 82 $continue_validation or $self->validate_when_empty
514 0 183 0 $class eq 'MooseX::Types::TypeDecorator' || $class->isa('Type::Tiny')
525 0 88 46 not ref $action or &$is_type($action)
556 0 37 58 $error_message ||= $tobj->validate($new_value)
581 0 0 0 $@ || $self->get_message('error_occurred')