Condition Coverage

lib/DBIx/OptimalQuery.pm
Criterion Covered Total %
condition 0 181 0.0


and 2 conditions

line l !l condition
134 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}{'AutoSetLongReadLen'} and scalar @{$c->{'selected_lobs'};}
215 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}{'AutoSetLongReadLen'} and scalar @{$c->{'selected_lobs'};}

and 3 conditions

line !l l&&!r l&&r condition
134 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}{'AutoSetLongReadLen'}
215 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}{'AutoSetLongReadLen'}
444 0 0 0 not $select->[3]{'select_sql'} and $select->[3]{'date_format'}
462 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}->get_col_types('select')->{$show} eq 'clob'
529 0 0 0 $sth->{'filter'} eq '' and $sth->{'hiddenFilter'} eq ''
0 0 0 $sth->{'filter'} eq '' and $sth->{'hiddenFilter'} eq '' and $sth->{'forceFilter'} eq ''
589 0 0 0 $v =~ s/^\"// and $v =~ s/\"$//
0 0 0 $v =~ s/^\'// and $v =~ s/\'$//
606 0 0 0 $token[2]{'sql'} eq '?' and $token[2]{'binds'}[0] eq ''
0 0 0 $token[0]{'colAlias'} and $token[2]{'colAlias'}
690 0 0 0 $token[1]{'sql'} =~ /like/i and $token[2]{'sql'} eq '?'
712 0 0 0 exists $oq->{'select'}{$token[0]{'colAlias'}}[3]{'date_format'} and $token[1]{'sql'} =~ /like/i
0 0 0 exists $oq->{'select'}{$token[0]{'colAlias'}}[3]{'date_format'} and $token[1]{'sql'} =~ /like/i and $token[2]{'sql'} eq '?'
0 0 0 exists $oq->{'select'}{$token[0]{'colAlias'}}[3]{'date_format'} and not $token[1]{'sql'} =~ /like/i
0 0 0 exists $oq->{'select'}{$token[0]{'colAlias'}}[3]{'date_format'} and not $token[1]{'sql'} =~ /like/i and $token[2]{'sql'} eq '?'
0 0 0 $token[1]{'sql'} =~ /\=|\<|\>/ and $oq->get_col_type($token[0]{'colAlias'}, 'filter') eq 'num'
0 0 0 $token[1]{'sql'} =~ /\=|\<|\>/ and $oq->{'dbtype'} eq 'Oracle'
0 0 0 $token[1]{'sql'} =~ /\=|\<|\>/ and $oq->{'dbtype'} eq 'Oracle' and $oq->get_col_type($token[0]{'colAlias'}, 'filter') eq 'clob'
948 0 0 0 s/^\"// and s/\"$//
0 0 0 s/^\'// and s/\'$//
990 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}->get_col_types('select')->{$colAlias} eq 'clob'
0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}->get_col_types('select')->{$colAlias} eq 'clob' and not $sql =~ /^cast\(/i
1040 0 0 0 $c->{'sth'}{'TYPE'}[$i] eq '3' and $v->[$i] =~ /\./
1405 0 0 0 ref $oq->{$key}{$alias} eq 'ARRAY' and defined $oq->{$key}{$alias}[$i]
0 0 0 ref $oq->{$key}{$alias} eq 'ARRAY' and defined $oq->{$key}{$alias}[$i] and ref $oq->{$key}{$alias}[$i] ne 'ARRAY'
1418 0 0 0 exists $opts->{$opt} and ref $opts->{$opt} ne 'ARRAY'
1424 0 0 0 defined $dep and not exists $oq->{'joins'}{$dep}
1438 0 0 0 exists $opts->{'new_cursor'}{'keys'} and exists $opts->{'new_cursor'}{'join'}
0 0 0 exists $opts->{'new_cursor'}{'keys'} and exists $opts->{'new_cursor'}{'join'} and exists $opts->{'new_cursor'}{'sql'}
1445 0 0 0 defined $dep and not exists $oq->{'joins'}{$dep}
1453 0 0 0 defined $dep and not exists $oq->{'joins'}{$dep}
1462 0 0 0 defined $dep and not exists $oq->{'joins'}{$dep}
1518 0 0 0 $p > 0 and /\G(.)/cgs
1538 0 0 0 /\G\s*([\d\w\_]+)\s*/cgs and lc $1 ne 'on'
1738 0 0 0 $oq->{'dbtype'} eq 'Oracle' and $#binds == -1

or 2 conditions

line l !l condition
257 0 0 $sth->{'limit'}[0] || 0
1262 0 0 $oq->{'debug'} ||= 0
1372 0 0 shift() || 'start'
1391 0 0 $oq->{'select'}{$_}[3] ||= {}
1392 0 0 $oq->{'joins'}{$_}[3] ||= {}
1403 0 0 $oq->{$key} ||= {}
1685 0 0 shift() || 'default'
1696 0 0 shift() || 'default'
1905 0 0 $idx{$oq->{'joins'}{$dep}[0][0]} || 0

or 3 conditions

line l !l&&r !l&&!r condition
144 0 0 0 not $sth->{'oq'}{'dbh'}{'LongReadLen'} or $SetLongReadLen > $sth->{'oq'}{'dbh'}{'LongReadLen'}
223 0 0 0 not $sth->{'oq'}{'dbh'}{'LongReadLen'} or $SetLongReadLen > $sth->{'oq'}{'dbh'}{'LongReadLen'}
258 0 0 0 $sth->{'limit'}[1] || $sth->count
446 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' or $sth->{'oq'}{'dbtype'} eq 'Pg'
458 0 0 0 $select->[3]{'select_sql'} || $select->[1]
612 0 0 0 $t0 eq 'char' or $t0 eq 'clob'
615 0 0 0 $op =~ /NOT\ /i or $op =~ /\!/
630 0 0 0 $op =~ /NOT\ /i or $op =~ /\!/
649 0 0 0 $op =~ /NOT\ /i or $op =~ /\!/
677 0 0 0 $oq->{'dbtype'} eq 'Oracle' or $oq->{'dbtype'} eq 'SQLite'
1374 0 0 0 $cached_parsers{$grammar} ||= 'Parse::RecDescent'->new($grammar)
1520 0 0 0 $c eq q['] or $c eq '"'
1689 0 0 0 $oq->{'select'}{$alias}[3]{'col_type'} || $oq->get_col_types($context)->{$alias}
1791 0 0 0 $oq->{'dbtype'} eq 'Oracle' or $oq->{'dbtype'} eq 'Microsoft SQL Server'
1828 0 0 0 $oq->{'col_types'}{'select'}{$name} ||= $type
1829 0 0 0 $oq->{'col_types'}{'filter'}{$name} ||= $type
1830 0 0 0 $oq->{'col_types'}{'sort'}{$name} ||= $type
1895 0 0 0 not defined $oq->{'joins'}{$dep}[0] or exists $oq->{'joins'}{$dep}[3]{'new_cursor'}