Branch Coverage

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


line true false branch
18 0 0 defined $_[0] ? :
32 0 0 unless ref $schema eq 'HASH'
39 0 0 unless $o->{'dbh'} = $o->{'schema'}{'dbh'}
41 0 0 unless $o->{'q'} = $o->{'schema'}{'q'}
47 0 0 unless ref $o->{'schema'}{'select'} eq 'HASH'
49 0 0 unless ref $o->{'schema'}{'joins'} eq 'HASH'
54 0 0 unless defined $o->{'schema'}{'check'}
55 0 0 unless defined $o->{'schema'}{'check'}
60 0 0 unless ($o->{'schema'}{'URI'})
61 0 0 $o->{'q'}->can('uri') ? :
70 0 0 if (ref $o->{'schema'}{'state_params'} eq 'ARRAY')
72 0 0 if $p eq 'act'
73 0 0 if $p eq 'module'
74 0 0 if $p eq 'view'
97 0 0 if $find_dep_multival_status_i > 100
98 0 0 unless (exists $cached_dep_multival_status{$joinAlias})
100 0 0 if (exists $o->{'oq'}{'joins'}{$joinAlias}[3]{'new_cursor'}) { }
0 0 elsif (not @{$o->{'oq'}{'joins'}{$joinAlias}[0];}) { }
114 0 0 unless &$find_dep_multival_status($o->{'oq'}{'select'}{$selectAlias}[0][0])
118 0 0 unless $o->{'oq'}{'select'}{$selectAlias}[2]
121 0 0 unless ($o->{'oq'}{'select'}{$selectAlias}[1])
127 0 0 if ($o->{'oq'}{'select'}{$selectAlias}[3]{'select'} and ref $o->{'oq'}{'select'}{$selectAlias}[3]{'select'} ne 'ARRAY')
135 0 0 if ($on_select =~ /[^\,]+\,(.+)/)
139 0 0 if exists $o->{'oq'}{'select'}{$_}
144 0 0 if $o->{'schema'}{'check'} and not defined $o->{'q'}->param('module')
151 0 0 if ($o->{'schema'}{'savedSearchUserID'} =~ /^\d+$/)
158 0 0 if ref $v->{'on_init'} eq 'CODE'
162 0 0 if (ref $o->{'schema'}{'params'} eq 'HASH') { }
164 0 0 if exists $o->{'schema'}{'params'}{$k}
171 0 0 unless defined $o->{'q'}->param($k)
178 0 0 unless defined $o->{$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