Branch Coverage

blib/lib/App/AutoCRUD/Controller/Table.pm
Criterion Covered Total %
branch 27 62 43.5


line true false branch
25 0 21 unless my($table, $meth_name) = $context->extract_path_segments(2)
27 0 21 unless my $method = $self->can($meth_name)
79 0 3 if $template
100 0 3 if ($with_count)
122 0 3 unless defined $page_index and defined $page_size
130 0 3 unless @{$data->{'rows'};} < $page_size
131 0 3 unless $page_index <= 1
168 1 1 if ($context->req->method eq 'POST') { }
170 1 0 unless delete $req_data->{'col'}
190 3 0 if ($self->context->req->method eq 'POST') { }
201 4 8 if ($self->context->app->readonly)
219 0 3 unless length $val
220 0 3 if $val eq 'Null'
222 0 3 unless keys %$to_set
225 1 2 unless my $where = $req_data->{'where'}
227 1 1 unless $criteria and keys %$criteria
234 1 0 $n_updates == 1 ? :
251 0 0 if (my $where_pk = delete $req_data->{'where_pk'}) { }
268 0 0 if (my $noupd = delete $req_data->{'_noupd'})
288 2 0 if ($context->req->method eq 'POST') { }
290 1 1 unless my $where = $req_data->{'where'}
292 1 0 unless $criteria and keys %$criteria
299 0 0 $n_deletes == 1 ? :
307 0 0 if (my $where_pk = delete $req_data->{'where_pk'}) { }
333 0 0 unless $context->req->method eq 'GET'
349 0 0 if $val and not $is_pk{$col}
372 0 0 if ($context->req->method eq 'POST') { }
402 0 0 if (my $where = $req_data->{'where'})
404 0 0 if ($criteria and keys %$criteria)
432 1 13 unless length $val
458 0 0 if (my $sep = $self->datasource->schema->sql_abstract->multicols_sep)