Branch Coverage

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


line true false branch
42 146 170 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 133 0 load_optional_class($self->renderer_class) ? :
122 0 7 if $self->action
123 0 7 if $self->enctype
138 0 0 if (not $message[0] =~ /{/) { }
203 0 0 if $self->_has_form_message($msg)
229 70 100 if $self->processed
232 103 67 if $self->submitted
234 64 106 if $self->validated
235 64 106 if $self->validated
243 0 0 if $self->processed
246 0 0 if $self->submitted
278 38 132 if (@args == 1) { }
116 16 elsif (@args > 1) { }
284 0 164 unless $self->can($key)
296 103 67 if $self->has_params and not defined $self->submitted
303 105 65 if ($self->submitted)
306 2 103 if (not scalar keys %{$self->input;})
317 9 293 if ($self->model and $self->use_model_for_defaults) { }
41 252 elsif ($self->init_values) { }
157 95 elsif (not $self->submitted) { }
345 0 146 if ($self->field_prefix)
348 0 146 unless defined $new_params
354 1 169 if ($self->has_active)
357 1 0 if ($field) { }
366 2 168 if ($self->has_inactive)
369 2 0 if ($field) { }
420 0 1 if $self->has_form_errors
421 0 1 if $self->has_errors
431 1 1 unless (exists $field_attr{'order'})
446 2 62 if ($self->has_repeatable_fields and $self->model)
448 0 4 unless $field->is_active
454 1 1 if ($sub_field->is_compound and $sub_field->has_primary_key)
456 1 0 unless $pk_field->fif
458 1 0 if $needs_reload
461 3 1 unless $needs_reload
467 1 0 if (ref $rep_model)
518 0 0 if ($field->type eq 'Hidden' and $field->has_value)