Branch Coverage

blib/lib/Data/MuForm.pm
Criterion Covered Total %
branch 55 80 68.7


line true false branch
42 145 169 if ($params)
63 16 7 unless defined $init_obj
64 0 7 if ref $init_obj eq 'HASH' and not scalar keys %$init_obj
100 132 0 load_optional_class($self->renderer_class) ? :
120 0 7 if $self->action
121 0 7 if $self->enctype
136 0 0 if (not $message[0] =~ /{/) { }
201 0 0 if $self->_has_form_message($msg)
227 70 99 if $self->processed
230 103 66 if $self->submitted
232 64 105 if $self->validated
233 64 105 if $self->validated
241 0 0 if $self->processed
244 0 0 if $self->submitted
276 38 131 if (@args == 1) { }
115 16 elsif (@args > 1) { }
282 0 163 unless $self->can($key)
294 103 66 if $self->has_params and not defined $self->submitted
301 105 64 if ($self->submitted)
304 2 103 if (not scalar keys %{$self->input;})
315 9 291 if ($self->model and $self->use_model_for_defaults) { }
41 250 elsif ($self->init_values) { }
155 95 elsif (not $self->submitted) { }
343 0 145 if ($self->field_prefix)
346 0 145 unless defined $new_params
352 1 168 if ($self->has_active)
355 1 0 if ($field) { }
364 2 167 if ($self->has_inactive)
367 2 0 if ($field) { }
422 0 1 if $self->has_form_errors
423 0 1 if $self->has_errors
433 1 1 unless (exists $field_attr{'order'})
448 2 62 if ($self->has_repeatable_fields and $self->model)
450 0 4 unless $field->is_active
456 1 1 if ($sub_field->is_compound and $sub_field->has_primary_key)
458 1 0 unless $pk_field->fif
460 1 0 if $needs_reload
463 3 1 unless $needs_reload
469 1 0 if (ref $rep_model)
518 0 0 if ($field->type eq 'Hidden' and $field->has_value)