Branch Coverage

blib/lib/SQL/QueryBuilder/OO.pm
Criterion Covered Total %
branch 0 236 0.0


line true false branch
604 0 0 if (defined $params{'-dbh'} and defined $params{'-connect'})
616 0 0 unless (defined $sqlQuery::DBI)
617 0 0 if (defined $sqlQuery::params{'-dbh'}) { }
0 0 elsif (defined $sqlQuery::params{'-connect'}) { }
621 0 0 if $@
641 0 0 if blessed $rows and $rows->isa('sqlQueryResult')
668 0 0 ref $_[0] ? :
672 0 0 if (not blessed $sql) { }
673 0 0 if not defined $sql or ref $sql or looks_like_number $sql
676 0 0 unless $sql->isa('sqlSelectAssemble')
693 0 0 if (@_) { }
0 0 elsif (blessed($$self{'-sql'})) { }
699 0 0 if (defined $$self{'-params'})
710 0 0 if (@_) { }
0 0 elsif (blessed($$self{'-sql'})) { }
720 0 0 if $@
743 0 0 if (defined $$self{'-params'})
748 0 0 if (1 == scalar @_ and 'HASH' eq ref $_[0]) { }
753 0 0 unless defined $$self{'-params'}{$p}
758 0 0 if grep {'HASH' eq ref $_;} @_
764 0 0 unless defined $$self{'-params'}[$index]
774 0 0 if ($$self{'-named'}) { }
790 0 0 if $@
793 0 0 0 < $pos ? :
811 0 0 if $@
814 0 0 0 < $pos ? :
829 0 0 if (defined $name) { }
830 0 0 unless (exists $$self{'-params'}{$name})
835 0 0 unless (ref $$self{'-params'} and @{$$self{'-params'};})
847 0 0 if ('ARRAY' eq ref $$self{'-params'} and @{$$self{'-params'};})
860 0 0 unless ($sql =~ /^select/i)
864 0 0 if $@
873 0 0 if $@
891 0 0 if (ref $table)
899 0 0 if '*' eq $table
910 0 0 if ref $table or ".$table" =~ /^(?:\.[a-z_][a-z\d_]*){1,2}$/i
912 0 0 unless $table =~ /^([a-z_][a-z\d_]*)\.\*$/i
922 0 0 unless (defined $value)
934 0 0 if (not ref $arg) { }
0 0 elsif ('ARRAY' eq ref $arg) { }
0 0 elsif (blessed $arg and $arg->isa('sqlParameter')) { }
935 0 0 unless defined $arg
937 0 0 if $arg =~ /^-?\d+$/
939 0 0 if $arg =~ /^-?\d+[.]\d+$/
959 0 0 ref $_[0] ? :
984 0 0 if (looks_like_number $column) { }
986 0 0 if $column > $#row
991 0 0 unless exists $$row{$column}
1017 0 0 unless defined $$self{'-result'}
1035 0 0 if (@_ and 'ARRAY' eq ref $_[-1])
1039 0 0 if (not @_) { }
1069 0 0 ref $_[0] ? :
1137 0 0 unless (@{$$self{-'value'};})
1161 0 0 if (not defined $$self{-'value'}) { }
0 0 elsif (looks_like_number($$self{-'value'})) { }
1215 0 0 if ($prevClass)
1216 0 0 unless ref $$self{'prev'} and $$self{'prev'}->isa($prevClass)
1235 0 0 if $$self{'boundArgs'}
1239 0 0 if ($$self{'prev'})
1253 0 0 if $$self{'prev'}
1273 0 0 ref $_[0] ? :
1306 0 0 if (not 'HASH' eq ref $fieldIn) { }
1315 0 0 if (blessed $field and $field->isa('sqlParameter'))
1317 0 0 unless $alias
1319 0 0 if $alias
1327 0 0 if '*' ne $field and 0 == ~index($field, ' ')
1330 0 0 if (not $alias) { }
1333 0 0 unless ~index($alias, ' ')
1349 0 0 if @{$$self{'params'};}
1352 0 0 if (defined $$self{'tables'})
1359 0 0 if ('HASH' eq ref $tableSpec) { }
1368 0 0 unless $alias
1370 0 0 if $alias
1397 0 0 if (not @_ or 1 == @_ and not defined $_[0] or 2 == @_ and not defined $_[0] and not defined $_[1]) { }
1401 0 0 if @_
1411 0 0 if (not defined $$self{'limit'}) { }
0 0 elsif (defined $$self{'offset'}) { }
1444 0 0 if (not defined $$self{'ordering'}) { }
1451 0 0 if ('HASH' eq ref $theOrder)
1456 0 0 unless $direction
1458 0 0 if $direction
1484 0 0 unless ref $condition and $condition->isa('sqlCondition')
1496 0 0 if $$self{'havingCond'}
1506 0 0 if (not defined $$self{'havingCond'} && defined($s = $$self{'havingCond'}->assemble)) { }
1545 0 0 if (defined $$self{'grouping'})
1564 0 0 unless not defined $condition or ref $condition and $condition->isa('sqlCondition')
1576 0 0 if $$self{'whereCond'}
1586 0 0 if ($$self{'whereCond'} and defined($c = $$self{'whereCond'}->assemble))
1610 0 0 if ($self->isa('sqlSelectJoin'))
1613 0 0 if ref $condition
1639 0 0 if (not $self->isa('sqlSelectJoin')) { }
1649 0 0 if (not ref $condition) { }
0 0 elsif ($condition->isa('sqlCondition')) { }
1689 0 0 ref $_[0] ? :
1700 0 0 if (4 == $$self{'type'})
1703 0 0 unless ref $$self{'_argument'} and $$self{'_argument'}->isa('sqlCondition')
1718 0 0 unless $$self{'_parts'}
1719 0 0 2 == $$self{'type'} ? :
1724 0 0 unless ref $$self{'_condition'} and $$self{'_condition'}->isa('sqlCondition')
1740 0 0 if defined $leftConstant
1749 0 0 if $swap
1751 0 0 unless ref $left
1752 0 0 unless ref $right
1754 0 0 unless blessed $left and $left->isa('sqlCondition')
1755 0 0 unless blessed $right and $left->isa('sqlCondition')
1780 0 0 unless $$self{'_parts'}
1800 0 0 if (1 == scalar @_ and not defined $_[0] and defined $$self{'_alterForNull'})
1802 0 0 $$self{'_alterForNull'} ? :
1827 0 0 unless @_
1834 0 0 unless @_
1847 0 0 if (1 == scalar @_) { }
1931 0 0 3 != scalar @_ ? :
1945 0 0 unless blessed $a and $a->isa('sqlCondition')
1946 0 0 if $$a{'type'} != $type
1958 0 0 unless $$self{'_parts'}
1968 0 0 unless $$self{'parent'}
1970 0 0 if $$self{'parent'}
1992 0 0 unless defined $$self{'parent'}