Branch Coverage

blib/lib/App/AutoCRUD/Controller/Table.pm
Criterion Covered Total %
branch 25 60 41.6


line true false branch
25 0 15 unless my($table, $meth_name) = $context->extract_path_segments(2)
27 0 15 unless my $method = $self->can($meth_name)
79 0 2 if $template
100 0 2 if ($with_count)
122 0 2 unless defined $page_index and defined $page_size
130 0 2 unless @{$$data{'rows'};} < $page_size
131 0 2 unless $page_index <= 1
168 1 1 if ($context->req->method eq 'POST') { }
170 1 0 unless delete $$req_data{'col'}
188 3 0 if ($self->context->req->method eq 'POST') { }
208 0 3 unless length $val
209 0 3 if $val eq 'Null'
211 0 3 unless keys %$to_set
214 1 2 unless my $where = $$req_data{'where'}
216 1 1 unless $criteria and keys %$criteria
223 1 0 $n_updates == 1 ? :
238 0 0 if (my $where_pk = delete $$req_data{'where_pk'}) { }
255 0 0 if (my $noupd = delete $$req_data{'_noupd'})
273 2 0 if ($context->req->method eq 'POST') { }
275 1 1 unless my $where = $$req_data{'where'}
277 1 0 unless $criteria and keys %$criteria
284 0 0 $n_deletes == 1 ? :
292 0 0 if (my $where_pk = delete $$req_data{'where_pk'}) { }
316 0 0 unless $context->req->method eq 'GET'
332 0 0 if $val and not $is_pk{$col}
353 0 0 if ($context->req->method eq 'POST') { }
383 0 0 if (my $where = $$req_data{'where'})
385 0 0 if ($criteria and keys %$criteria)
413 1 11 unless length $val
439 0 0 if (my $sep = $self->datasource->schema->sql_abstract->multicols_sep)