blib/lib/Data/MuForm/Field.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 36 | 60 | 60.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
16 | 0 | 75 | 0 | $self->form and $self->form->can('build_field_id') |
27 | 0 | 76 | 0 | $self->form && $self->form->field_prefix |
183 | 15 | 1454 | 550 | defined $parent_name and length $parent_name |
200 | 0 | 0 | 0 | defined $parent_accessor and length $parent_accessor |
429 | 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 | |
434 | 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 | |
540 | 79 | 2 | 14 | $tobj->has_coercion and $tobj->validate($value) |
750 | 24 | 37 | 1 | $self->has_form and $self->form->_has_form_message($msg) |
line | l | !l | condition |
---|---|---|---|
257 | 83 | 0 | $self->errors || [] |
758 | 0 | 0 | $self->messages || {} |
759 | 0 | 0 | $self->my_class_messages || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
85 | 81 | 2 | 478 | ref $_ or not defined $_ |
434 | 71 | 0 | 539 | $self->required || $self->has_required_when && $self->match_when($self->required_when) |
449 | 1 | 1 | 14 | $self->no_value_if_empty or $self->is_contains |
462 | 528 | 0 | 82 | $continue_validation or $self->validate_when_empty |
513 | 0 | 183 | 0 | $class eq 'MooseX::Types::TypeDecorator' || $class->isa('Type::Tiny') |
524 | 0 | 88 | 46 | not ref $action or &$is_type($action) |
555 | 0 | 37 | 58 | $error_message ||= $tobj->validate($new_value) |
580 | 0 | 0 | 0 | $@ || $self->get_message('error_occurred') |