Branch Coverage

lib/CGI/OptimalQuery/Base.pm
Criterion Covered Total %
branch 0 126 0.0


line true false branch
41 0 0 unless ref $schema eq 'HASH'
48 0 0 unless $o->{'dbh'} = $o->{'schema'}{'dbh'}
50 0 0 unless $o->{'q'} = $o->{'schema'}{'q'}
56 0 0 unless ref $o->{'schema'}{'select'} eq 'HASH'
58 0 0 unless ref $o->{'schema'}{'joins'} eq 'HASH'
63 0 0 unless defined $o->{'schema'}{'check'}
64 0 0 unless defined $o->{'schema'}{'check'}
69 0 0 unless ($o->{'schema'}{'URI'})
70 0 0 $o->{'q'}->can('uri') ? :
79 0 0 if (ref $o->{'schema'}{'state_params'} eq 'ARRAY')
81 0 0 if $p eq 'act'
82 0 0 if $p eq 'module'
83 0 0 if $p eq 'view'
106 0 0 if $find_dep_multival_status_i > 100
107 0 0 unless (exists $cached_dep_multival_status{$joinAlias})
109 0 0 if (exists $o->{'oq'}{'joins'}{$joinAlias}[3]{'new_cursor'}) { }
0 0 elsif (not @{$o->{'oq'}{'joins'}{$joinAlias}[0];}) { }
123 0 0 unless &$find_dep_multival_status($o->{'oq'}{'select'}{$selectAlias}[0][0])
127 0 0 unless $o->{'oq'}{'select'}{$selectAlias}[2]
130 0 0 unless ($o->{'oq'}{'select'}{$selectAlias}[1])
136 0 0 if ($o->{'oq'}{'select'}{$selectAlias}[3]{'select'} and ref $o->{'oq'}{'select'}{$selectAlias}[3]{'select'} ne 'ARRAY')
144 0 0 if ($on_select =~ /[^\,]+\,(.+)/)
148 0 0 if exists $o->{'oq'}{'select'}{$_}
153 0 0 if $o->{'schema'}{'check'} and not defined $o->{'q'}->param('module')
160 0 0 if ($o->{'schema'}{'savedSearchUserID'} =~ /^\d+$/)
167 0 0 if ref $v->{'on_init'} eq 'CODE'
172 0 0 if (exists $schemaparams->{$k}) { }
0 0 elsif (defined $o->{'q'}->param($k)) { }
189 0 0 unless (ref $o->{'show'})
196 0 0 unless (scalar @{$o->{'show'};})
198 0 0 unless $o->{'oq'}{'select'}{$_}[3]{'is_hidden'}
234 0 0 if (ref $thing eq 'HASH') { }
0 0 elsif (ref $thing eq 'ARRAY') { }
237 0 0 if (exists $no_clone{$k}) { }
254 0 0 if $o->{'sth'}
260 0 0 if (ref $o->{'schema'}{'select'}{$colalias}[3]{'select'} eq 'ARRAY')
263 0 0 if ($o->{'schema'}{'select'}{$colalias}[1])
283 0 0 if ($o->{'sth'}->count == 0) { }
0 0 elsif ($o->{'rows_page'} eq 'All' or $o->{'sth'}->count < $o->{'rows_page'}) { }
295 0 0 if $o->{'page'} > $o->{'num_pages'}
298 0 0 if $hi > $o->{'sth'}->count
322 0 0 if $o->{'sth'}
330 0 0 unless ($o->{'_opts'})
333 0 0 if (exists $o->{'schema'}{'options'}{$class}) { }
0 0 elsif ($class =~ s/\d+$// and exists $o->{'schema'}{'options'}{$class}) { }
353 0 0 if ($o->{'rec'} = $o->sth->fetchrow_hashref)
355 0 0 if ref $mutator eq 'CODE'
356 0 0 if ref $o->{'schema'}{'mutateRecord'} eq 'CODE'
364 0 0 unless $o->{'rec'}
371 0 0 unless $o->{'rec'}
378 0 0 ref $val eq 'ARRAY' ? :
383 0 0 unless (exists $o->{'_noEscapeColMap'})
384 0 0 unless $o->get_opts->{'noEscapeCol'}
387 0 0 if ($o->{'_noEscapeColMap'}{$colAlias}) { }
0 0 elsif (ref $val eq 'ARRAY') { }
388 0 0 if ref $val eq 'ARRAY'
403 0 0 if ($val2 ne '')
417 0 0 if ($val2 ne '')
422 0 0 $#val > -1 ? :
430 0 0 if ref $v1 eq 'ARRAY'
432 0 0 if ref $v2 eq 'ARRAY'
433 0 0 if $v1 ne $v2
437 0 0 if $args