Condition Coverage

blib/lib/DBIx/DBO/Query.pm
Criterion Covered Total %
condition 93 130 71.5


and 3 conditions

line !l l&&!r l&&r condition
147 99 0 339 $me->tables == 1 and _isa($tbl, "DBIx::DBO::Table")
219 7 1 2 _isa($fld, "DBIx::DBO::Table") and exists $fld->{'Column_Idx'}{$col}
7 0 1 _isa($fld, "DBIx::DBO::Query") and eval { do { $fld->column($col) } }
1 1 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'}
228 17 28 6 $_check_aliases == 1 and $column = $me->_check_alias($col)
232 0 0 1 $_check_aliases == 2 and $column = $me->_check_alias($col)
240 1 19 12 ref $fld eq "ARRAY" and exists $fld->[2]{'AS'}
19 5 7 ref $fld eq "ARRAY" and exists $fld->[2]{'AS'} and $col eq $fld->[2]{'AS'}
500 1 2 0 $type ne "SCALAR" and not _isa($f, "DBIx::DBO::Query")
559 28 0 2 defined $opt{'FORCE'} and $opt{'FORCE'} ne "AND"
28 2 0 defined $opt{'FORCE'} and $opt{'FORCE'} ne "AND" and $opt{'FORCE'} ne "OR"
563 13 15 2 @$val == 1 and not defined $val->[0]
28 0 2 @$val == 1 and not defined $val->[0] and not defined $val_func
582 3 0 0 $opt{'FORCE'} and $opt{'FORCE'} ne $op_ag
586 1 0 0 $lim->[7] and $lim->[7] ne $op_ag
624 0 0 3 $ag and $ag =~ /^(AND|OR)$/u
812 0 0 0 0 < $max-- and $_ = $sth->fetch
838 8 15 8 defined $me->{'Row'} and &SvREFCNT(\${$$me{"Row"};}) > 1
923 0 0 20 $me->{'sth'} && $me->{'sth'}->execute(@{$$me{'bind'};})
1068 0 9 0 defined $_ and $_->_inactivate
1099 0 1 3 $me->{'sth'} and $me->{'sth'}{'Active'}
1177 12 0 13 my $attached_rows = delete $_[0]{'attached_rows'} and ${^GLOBAL_PHASE} ne "DESTRUCT"

or 2 conditions

line l !l condition
149 94 5 +($me->{'build_data'}{'_super_query'} // $me)->_build_data->{'_from_alias'} //= {}
219 1 4 $me->{'Column'}{$col} //= bless([$me, $col], "DBIx::DBO::Column")
240 6 1 $me->{'Column'}{$col} //= bless([$me, $col], "DBIx::DBO::Column")
365 2 5 $me->{'build_data'}{"join$i"} ||= []
387 1 0 $me->{'build_data'}{"join$i"} ||= []
473 14 6 $me->{'build_data'}{'where'} ||= []
619 2 0 $me->{'build_data'}{'where'} ||= []
693 2 1 $me->{'build_data'}{'having'} ||= []
1053 1 4 $me->{'up_queries'} //= []
1153 32 1 $me->{'Config'} //= {}
1154 440 11 $me->{'Config'} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
78 0 29 0 ref $proto || $proto
149 10 89 0 $me->{'build_data'}{'_super_query'} // $me
150 87 12 0 $_from_alias->{$tbl} //= 't' . scalar(keys %$_from_alias)
219 2 1 7 _isa($fld, "DBIx::DBO::Table") and exists $fld->{'Column_Idx'}{$col} or _isa($fld, "DBIx::DBO::Query") and eval { do { $fld->column($col) } }
1 3 4 _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'}
570 2 1 16 $op eq "BETWEEN" or $op eq "NOT BETWEEN"
1 2 13 $op eq "IN" or $op eq "NOT IN"
571 0 1 2 ref $val ne "ARRAY" or @$val != 2
754 6 0 0 /^\d+$/u or croak("Invalid argument '${_}' in limit")
835 0 19 12 exists $me->{'cache'} or $me->{'Active'}
19 12 0 exists $me->{'cache'} or $me->{'Active'} or $me->run
875 17 22 0 $me->{'Row'} //= $me->row_class->new($me->{'DBO'}, $me)
1001 0 1 0 $me->{'Found_Rows'} // $me->{'DBO'}{'dbd_class'}->_calc_found_rows($me)