Branch Coverage

blib/lib/Catalyst/Controller/CRUD.pm
Criterion Covered Total %
branch 0 38 0.0


line true false branch
59 0 0 if ($c->req->param('btn_create')) { }
0 0 elsif (defined $c->req->args->[0] and $c->req->args->[0] =~ /^\d+$/) { }
64 0 0 if defined $param
71 0 0 if (not $c->stash->{'create'}{'error'} and scalar keys %{$hash;}) { }
91 0 0 $self->setting($c)->{'template'}{'suffix'} ? :
105 0 0 if (defined $c->req->args->[0] and $c->req->args->[0] =~ /^\d+$/)
111 0 0 $self->setting($c)->{'template'}{'suffix'} ? :
132 0 0 if ($c->req->param('btn_update')) { }
0 0 elsif (defined $c->req->args->[0] and $c->req->args->[0] =~ /^\d+$/) { }
134 0 0 if (defined $model)
140 0 0 if (defined $value)
149 0 0 if (not $c->stash->{'update'}{'error'} and scalar keys %{$hash;}) { }
152 0 0 if (defined $value)
182 0 0 $self->setting($c)->{'template'}{'suffix'} ? :
203 0 0 if (defined $c->req->args->[0] and $c->req->args->[0] =~ /^\d+$/) { }
205 0 0 if (defined $model)
207 0 0 unless ($c->stash->{'delete'}{'error'})
208 0 0 if ($model->can('disable')) { }
241 0 0 $self->setting($c)->{'template'}{'suffix'} ? :