Condition Coverage

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


and 2 conditions

line l !l condition
133 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}{'AutoSetLongReadLen'} and scalar @{$c->{'selected_lobs'};}
214 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
133 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}{'AutoSetLongReadLen'}
214 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}{'AutoSetLongReadLen'}
443 0 0 0 not $select->[3]{'select_sql'} and $select->[3]{'date_format'}
461 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' and $sth->{'oq'}->get_col_types('select')->{$show} eq 'clob'
594 0 0 0 $c->{'sth'}{'TYPE'}[$i] eq '3' and $v->[$i] =~ /\./
1060 0 0 0 $leftType eq 'num' and not $rval =~ /^(\-?\d*\.\d+|\-?\d+)$/
0 0 0 $oq->{'dbtype'} eq 'Oracle' and $leftType eq 'clob'
1178 0 0 0 $leftType eq 'datetime' and $mi eq ''
1214 0 0 0 $leftType eq 'datetime' and $mi eq ''
1591 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'
1604 0 0 0 exists $opts->{$opt} and ref $opts->{$opt} ne 'ARRAY'
1610 0 0 0 defined $dep and not exists $oq->{'joins'}{$dep}
1624 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'}
1631 0 0 0 defined $dep and not exists $oq->{'joins'}{$dep}
1639 0 0 0 defined $dep and not exists $oq->{'joins'}{$dep}
1648 0 0 0 defined $dep and not exists $oq->{'joins'}{$dep}
1704 0 0 0 $p > 0 and /\G(.)/cgs
1724 0 0 0 /\G\s*([\d\w\_]+)\s*/cgs and lc $1 ne 'on'
1932 0 0 0 $oq->{'dbtype'} eq 'Oracle' and $#binds == -1

or 2 conditions

line l !l condition
256 0 0 $sth->{'limit'}[0] || 0
815 0 0 $oq->{'debug'} ||= 0
1066 0 0 uc $3 || 'DAY'
1577 0 0 $oq->{'select'}{$_}[3] ||= {}
1578 0 0 $oq->{'joins'}{$_}[3] ||= {}
1589 0 0 $oq->{$key} ||= {}
1879 0 0 shift() || 'default'
1890 0 0 shift() || 'default'
2102 0 0 $idx{$oq->{'joins'}{$dep}[0][0]} || 0

or 3 conditions

line l !l&&r !l&&!r condition
143 0 0 0 not $sth->{'oq'}{'dbh'}{'LongReadLen'} or $SetLongReadLen > $sth->{'oq'}{'dbh'}{'LongReadLen'}
222 0 0 0 not $sth->{'oq'}{'dbh'}{'LongReadLen'} or $SetLongReadLen > $sth->{'oq'}{'dbh'}{'LongReadLen'}
257 0 0 0 $sth->{'limit'}[1] || $sth->count
445 0 0 0 $sth->{'oq'}{'dbtype'} eq 'Oracle' or $sth->{'oq'}{'dbtype'} eq 'Pg'
457 0 0 0 $select->[3]{'select_sql'} || $select->[1]
876 0 0 0 $f =~ /\G(\-?\d*\.\d+)\s*\,*\s*/cg or $f =~ /\G(\-?\d+)\s*\,*\s*/cg
0 0 0 $f =~ /\G(\-?\d*\.\d+)\s*\,*\s*/cg or $f =~ /\G(\-?\d+)\s*\,*\s*/cg or $f =~ /\G\'([^\']*)\'\s*\,*\s*/cg
0 0 0 $f =~ /\G(\-?\d*\.\d+)\s*\,*\s*/cg or $f =~ /\G(\-?\d+)\s*\,*\s*/cg or $f =~ /\G\'([^\']*)\'\s*\,*\s*/cg or $f =~ /\G\"([^\"]*)\"\s*\,*\s*/cg
0 0 0 $f =~ /\G(\-?\d*\.\d+)\s*\,*\s*/cg or $f =~ /\G(\-?\d+)\s*\,*\s*/cg or $f =~ /\G\'([^\']*)\'\s*\,*\s*/cg or $f =~ /\G\"([^\"]*)\"\s*\,*\s*/cg or $f =~ /\G(\w+)\s*\,*\s*/cg
932 0 0 0 $f =~ /\G\'([^\']*)\'\s*/cg or $f =~ /\G\"([^\"]*)\"\s*/cg
1024 0 0 0 $leftName ||= $leftColAlias
1040 0 0 0 $leftType eq 'char' or $leftType eq 'clob'
1060 0 0 0 $leftType eq 'date' or $leftType eq 'datetime'
1252 0 0 0 !$leftType eq 'char' or $leftType eq 'clob'
1418 0 0 0 $leftName ||= $leftColAlias
1426 0 0 0 $rightName ||= $rightColAlias
1451 0 0 0 $oq->{'dbtype'} eq 'Oracle' || $oq->{'dbtype'} eq 'SQLite'
1498 0 0 0 $str =~ /\G(\-?\d*\.\d+)\s*\,*\s*/cg or $str =~ /\G(\-?\d+)\s*\,*\s*/cg
0 0 0 $str =~ /\G(\-?\d*\.\d+)\s*\,*\s*/cg or $str =~ /\G(\-?\d+)\s*\,*\s*/cg or $str =~ /\G\'([^\']*)\'\s*\,*\s*/cg
0 0 0 $str =~ /\G(\-?\d*\.\d+)\s*\,*\s*/cg or $str =~ /\G(\-?\d+)\s*\,*\s*/cg or $str =~ /\G\'([^\']*)\'\s*\,*\s*/cg or $str =~ /\G\"([^\"]*)\"\s*\,*\s*/cg
0 0 0 $str =~ /\G(\-?\d*\.\d+)\s*\,*\s*/cg or $str =~ /\G(\-?\d+)\s*\,*\s*/cg or $str =~ /\G\'([^\']*)\'\s*\,*\s*/cg or $str =~ /\G\"([^\"]*)\"\s*\,*\s*/cg or $str =~ /\G(\w+)\s*\,*\s*/cg
1539 0 0 0 $sortLabel ||= $colAlias
1706 0 0 0 $c eq q['] or $c eq '"'
1883 0 0 0 $oq->{'select'}{$alias}[3]{'col_type'} || $oq->get_col_types($context)->{$alias}
1985 0 0 0 $oq->{'dbtype'} eq 'Oracle' or $oq->{'dbtype'} eq 'Microsoft SQL Server'
2022 0 0 0 $oq->{'col_types'}{'select'}{$name} ||= $type
2023 0 0 0 $oq->{'col_types'}{'filter'}{$name} ||= $type
2024 0 0 0 $oq->{'col_types'}{'sort'}{$name} ||= $type
2092 0 0 0 not defined $oq->{'joins'}{$dep}[0] or exists $oq->{'joins'}{$dep}[3]{'new_cursor'}