Condition Coverage

blib/lib/CatalystX/CRUD/Controller.pm
Criterion Covered Total %
condition 23 50 46.0


and 3 conditions

line !l l&&!r l&&r condition
164 1 0 34 defined $val and length $val
169 35 0 0 $c->debug and defined $pk_is_null
317 9 0 0 exists $c->request->params->{"x-tunneled-method"} and $c->request->params->{"x-tunneled-method"} eq "DELETE"
779 10 0 6 defined $c->res->location and length $c->res->location
851 6 4 1 not @arg || $c->req->param and $c->action->name eq "search"
876 0 10 0 $results and $count == 1
10 0 0 $results and $count == 1 and $c->stash->{'view_on_single_result'}
0 0 0 $results and $count == 1 and $c->stash->{'view_on_single_result'} and my $uri = $self->uri_for_view_on_single_result($c, $results)
888 7 3 0 $count and $self->model_can($c, "make_pager")

or 2 conditions

line l !l condition
870 3 7 $self->do_model($c, 'count', $query) || 0

or 3 conditions

line l !l&&r !l&&!r condition
172 1 0 34 defined $pk_is_null || !$id
177 0 12 22 $self->has_errors($c) or not $c->stash->{"object"}
317 0 0 9 $c->request->params->{"_delete"} or exists $c->request->params->{"x-tunneled-method"} and $c->request->params->{"x-tunneled-method"} eq "DELETE"
342 0 0 0 $c->stash->{"template"} ||= $self->default_template
675 0 0 0 $self->{'_form'} ||= $self->form_class->new
848 11 0 0 $c->stash->{'form'} ||= $self->form($c)
851 0 6 5 @arg || $c->req->param