Condition Coverage

blib/lib/DBIx/DBO/Query.pm
Criterion Covered Total %
condition 81 136 59.5


and 3 conditions

line !l l&&!r l&&r condition
153 31 0 81 $me->tables == 1 and _isa($tbl, 'DBIx::DBO::Table')
233 5 1 0 _isa($fld, 'DBIx::DBO::Table') and exists $$fld{'Column_Idx'}{$col}
6 0 0 _isa($fld, 'DBIx::DBO::Query') and eval { do { $fld->column($col) } }
1 0 5 ref $fld eq 'ARRAY' and exists $$fld[2]{'AS'}
1 3 2 ref $fld eq 'ARRAY' and exists $$fld[2]{'AS'} and $col eq $$fld[2]{'AS'}
243 17 27 6 $_check_aliases == 1 and $column = $me->_check_alias($col)
247 0 0 1 $_check_aliases == 2 and $column = $me->_check_alias($col)
254 0 19 11 ref $fld eq 'ARRAY' and exists $$fld[2]{'AS'}
19 4 7 ref $fld eq 'ARRAY' and exists $$fld[2]{'AS'} and $col eq $$fld[2]{'AS'}
519 1 0 0 $type ne 'SCALAR' and not _isa($f, 'DBIx::DBO::Query')
578 26 0 2 defined $opt{'FORCE'} and $opt{'FORCE'} ne 'AND'
26 2 0 defined $opt{'FORCE'} and $opt{'FORCE'} ne 'AND' and $opt{'FORCE'} ne 'OR'
583 11 15 2 @$val == 1 and not defined $$val[0]
26 0 2 @$val == 1 and not defined $$val[0] and not defined $val_func
602 3 0 0 $opt{'FORCE'} and $opt{'FORCE'} ne $op_ag
606 1 0 0 $$lim[7] and $$lim[7] ne $op_ag
644 0 3 0 $ag and $ag =~ /^(AND|OR)$/
836 0 0 0 0 < $max-- and $_ = $sth->fetch
859 0 30 0 $me->_sth and $$me{'Active'} || $me->run
862 7 23 0 defined $$me{'Row'} and SvREFCNT(${$$me{'Row'};}) > 1
1040 31 23 95 ref $fld eq 'ARRAY' and @{$$fld[0];} == 1
54 95 0 ref $fld eq 'ARRAY' and @{$$fld[0];} == 1 and _isa($$fld[0][0], 'DBIx::DBO::Query')
1057 24 26 0 @$w == 1 and _isa($$w[0], 'DBIx::DBO::Query')
1066 73 155 0 @$w == 1 and _isa($$w[0], 'DBIx::DBO::Query')
1153 13 0 0 $$me{'sth'} and $$me{'sth'}{'Active'}

or 2 conditions

line l !l condition
155 27 4 $$me{'build_data'}{'_from_alias'} ||= {}
233 0 2 $$me{'Column'}{$col} ||= bless([$me, $col], 'DBIx::DBO::Column')
254 6 1 $$me{'Column'}{$col} ||= bless([$me, $col], 'DBIx::DBO::Column')
386 2 4 $$me{'build_data'}{'Join_On'}[$i] ||= []
408 1 0 $$me{'build_data'}{'Join_On'}[$i] ||= []
492 17 2 $$me{'build_data'}{'Where_Data'} ||= []
639 2 0 $$me{'build_data'}{'Where_Data'} ||= []
715 2 1 $$me{'build_data'}{'Having_Data'} ||= []
1042 0 0 $$me{'build_data'}{'_subqueries'}{$sq} ||= ''
1050 0 0 $$me{'build_data'}{'_subqueries'}{$sq} ||= ''
1059 0 0 $$me{'build_data'}{'_subqueries'}{$sq} ||= ''
1068 0 0 $$me{'build_data'}{'_subqueries'}{$sq} ||= ''
1194 28 0 $$me{'Config'} ||= {}
1195 183 9 $$me{'Config'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
84 0 13 0 ref $proto || $proto
156 23 8 0 $$_from_alias{$tbl} ||= 't' . scalar(keys %$_from_alias)
233 0 0 6 _isa($fld, 'DBIx::DBO::Table') and exists $$fld{'Column_Idx'}{$col} or _isa($fld, 'DBIx::DBO::Query') and eval { do { $fld->column($col) } }
0 0 6 _isa($fld, 'DBIx::DBO::Table') and exists $$fld{'Column_Idx'}{$col} or _isa($fld, 'DBIx::DBO::Query') and eval { do { $fld->column($col) } } or ref $fld eq 'ARRAY' and exists $$fld[2]{'AS'} and $col eq $$fld[2]{'AS'}
590 2 1 16 $op eq 'BETWEEN' or $op eq 'NOT BETWEEN'
1 2 13 $op eq 'IN' or $op eq 'NOT IN'
591 0 1 2 ref $val ne 'ARRAY' or @$val != 2
778 6 0 0 /^\d+$/ or croak("Invalid argument '${_}' in limit")
859 21 9 0 $$me{'Active'} || $me->run
899 26 11 0 $$me{'Row'} ||= $me->_row_class->new($$me{'DBO'}, $me)
1109 32 17 0 $$me{'sth'} ||= $me->rdbh->prepare($sql)