Branch Coverage

blib/lib/Gantry/Plugins/CRUD.pm
Criterion Covered Total %
branch 1 84 1.1


line true false branch
23 0 3 if (not defined $$callbacks{'template'}) { }
40 0 0 if (defined $$self{'add_action'}) { }
51 0 0 if (defined $$self{'edit_action'}) { }
62 0 0 if (defined $$self{'delete_action'}) { }
73 0 0 if (defined $$self{'form'}) { }
124 0 0 if (not $$self{'ignore_default_template'} and $your_self->fish_config('default_form_template')) { }
136 0 0 unless $your_self->stash->view->title
142 0 0 if ($$params{'cancel'})
162 0 0 if ($your_self->is_post) { }
163 0 0 if keys %{$params;} == 0
165 0 0 if ($self->validator) { }
183 0 0 if $results->has_invalid
184 0 0 if $results->has_missing
185 0 0 if $$form{'error_text'}
191 0 0 if ($show_form) { }
196 0 0 if ($your_self->method eq 'POST')
202 0 0 $$params{'submit_add_another'} ? :
210 0 0 if ($self->turn_off_clean_params) { }
211 0 0 if ($self->use_clean_dates)
244 0 0 if (not $$self{'ignore_default_template'} and $your_self->fish_config('default_form_template')) { }
256 0 0 unless $your_self->stash->view->title
262 0 0 if ($params{'cancel'})
277 0 0 unless defined $form and $form
282 0 0 if ($your_self->is_post) { }
283 0 0 if keys %params == 0
286 0 0 if ($self->validator) { }
304 0 0 if $results->has_invalid
305 0 0 if $results->has_missing
306 0 0 if $$form{'error_text'}
313 0 0 if ($show_form) { }
318 0 0 if ($your_self->method eq 'POST')
326 0 0 $params{'submit_add_another'} ? :
334 0 0 if ($self->turn_off_clean_params) { }
335 0 0 if ($self->use_clean_dates)
365 0 0 unless $your_self->stash->view->template
367 0 0 unless $your_self->stash->view->title
370 0 0 if ($your_self->params->{'cancel'})
382 0 0 if (defined $yes and $yes eq 'yes') { }
419 0 0 if ($redirect_sub) { }
443 0 0 if (@real_keys) { }
444 0 0 unless $$params{$field_name}
447 0 0 if $param_id == $id