Branch Coverage

blib/lib/DBIx/Browse/CGI.pm
Criterion Covered Total %
branch 0 102 0.0


line true false branch
79 0 0 if ($q->param('nextrec'))
83 0 0 if ($q->param('prevrec'))
87 0 0 if ($q->param('firstrec'))
94 0 0 if ($$param{'field_names'} and scalar @{$$param{'field_names'};} == scalar @columns) { }
110 0 0 if ($q->param('search.' . $columns[$f]))
127 0 0 if ($q->param('lastrec'))
133 0 0 $rec <= $last - $$self{'max_rows'} + 1 ? :
134 0 0 $rec < 0 ? :
136 0 0 unless my $sth = $self->prepare({'where', "$where", 'order', $self->row_order, 'limit', $$self{'max_rows'}, 'offset', "$rec"})
142 0 0 unless $sth->execute
149 0 0 if ($$param{'field_order'} and scalar @{$$param{'field_order'};} == scalar @columns) { }
157 0 0 if ($$param{'field_length'} and scalar @{$$param{'field_length'};} == scalar @columns) { }
165 0 0 $_ < $$self{'max_flength'} ? :
0 0 if ($_) { }
198 0 0 if ($row = $sth->fetchrow_hashref('NAME_lc'))
209 0 0 defined $$row{$columns[$f]} ? :
229 0 0 if ($flength[$f])
266 0 0 if (ref $param ne 'HASH') { }
287 0 0 if ($q->param('nextrec'))
291 0 0 if ($q->param('prevrec'))
295 0 0 if ($q->param('firstrec'))
299 0 0 if ($q->param('lastrec'))
303 0 0 $rec <= $last ? :
304 0 0 $rec < 0 ? :
308 0 0 unless my $sth = $self->prepare({'where', $where, 'order', $self->row_order, 'limit', 1, 'offset', "$rec"})
315 0 0 unless $sth->execute
316 0 0 unless my $row = $sth->fetchrow_hashref('NAME_lc')
323 0 0 if ($$param{'field_names'} and scalar @{$$param{'field_names'};} == scalar @columns) { }
330 0 0 if ($$param{'field_order'} and scalar @{$$param{'field_order'};} == scalar @columns) { }
338 0 0 if ($$param{'field_length'} and scalar @{$$param{'field_length'};} == scalar @columns) { }
343 0 0 $_ < $$self{'max_flength'} ? :
345 0 0 if ($_) { }
354 0 0 if ($q->param('add')) { }
0 0 elsif ($q->param('update')) { }
0 0 elsif ($q->param('remove')) { }
371 0 0 unless $sth->finish
373 0 0 unless $sth = $self->prepare({'where', $nwhere, 'order', $self->pkey_name . ' DESC ', 'limit', 1, 'offset', "$rec"})
394 0 0 $rec > 0 ? :
401 0 0 if ($redo_query)
402 0 0 unless $sth->execute
403 0 0 unless $row = $sth->fetchrow_hashref('NAME_lc')
407 0 0 if ($self->debug)
439 0 0 if ($flength[$f])
445 0 0 if ($f < @{$$self{'non_linked'};}) { }
508 0 0 if (my(@fparams) = keys %{$$self{'form_params'};})
641 0 0 if ($action eq $a)
665 0 0 unless $$self{'debug'}
667 0 0 if $txt
678 0 0 unless $$self{'no_print'}
704 0 0 if $$self{'row_order'}
726 0 0 unless $$self{'noprint'}