Condition Coverage

blib/lib/Rose/DB/Object/QueryBuilder.pm
Criterion Covered Total %
condition 1 231 0.4


and 3 conditions

line !l l&&!r l&&r condition
170 0 0 0 ref $query and @$query
316 0 0 0 $bind_params and not defined $do_bind_params
450 0 0 0 ref $val eq 'HASH' and $val->{'any_in_array'} || $val->{'all_in_array'}
0 0 0 ref $val eq 'HASH' and $val->{'any_in_array'} || $val->{'all_in_array'} and not @{[] unless $val->{'any_in_array'} or $val->{'all_in_array'};}
467 0 0 0 $column_arg eq $column || $column_arg eq "!$column" and ($column_count{$column} || 0) > 1
517 0 0 0 $col_meta and $db
0 0 0 $col_meta and $db and $col_meta->should_inline_value($db, $val)
583 0 0 0 $joins and @$joins
699 0 0 0 $driver eq 'mysql' and @normal_tables
0 0 0 $driver eq 'mysql' and @normal_tables and $db && $db->database_version >= 5000012 || $dbh->get_info(18) =~ /5\.\d+\.(?:1[2-9]|[2-9]\d)/
739 0 0 0 $dbh->{'Driver'}{'Name'} eq 'Oracle' && $limit_prefix
769 0 0 0 $db && %$hints
797 0 0 0 $object_class and $lock
821 0 0 0 not defined $op and ref $vals eq 'HASH'
0 0 0 not defined $op and ref $vals eq 'HASH' and keys %$vals == 1
850 0 0 0 $db && $col_meta && $col_meta->should_inline_value($db, $vals)
855 0 0 0 $bind and not $should_inline
0 0 0 $bind and not $should_inline and not $force_inline
946 0 0 0 $db && $col_meta && $col_meta->should_inline_value($db, $val)
1026 0 0 0 $db && $col_meta && $col_meta->should_inline_value($db, $val)
1100 0 0 0 $wanted > 1 and @{$vals->{$raw_op};} > $wanted
1162 0 0 0 $nested->[$i] and @{$nested->[$i];}
1230 0 0 0 ref $store eq 'HASH' and $Op_Arg_PassThru{$param}
1243 0 0 0 defined $value and not defined $parsed_value
1258 0 0 0 $col_meta->type eq 'set' and $depth == 1
1285 0 0 0 defined $value and $val_ref ne 'SCALAR'
1296 0 0 0 defined $value and not defined $parsed_value

or 2 conditions

line l !l condition
90 62 0 $DBI::Const::GetInfoType::GetInfoType{'SQL_DBMS_VER'} || 18
101 0 0 delete $args{'logic'} || 'AND'
103 0 0 $args{'all_columns'} || {}
108 0 0 delete $args{'limit_prefix'} || ''
116 0 0 $args{'hints'} || {}
118 0 0 delete $args{'table_map'} || {}
137 0 0 $lock ||= {'type', 'for update'}
305 0 0 $args{'meta'} || {}
340 0 0 $args{'meta'} || {}
467 0 0 $column_count{$column} || 0
839 0 0 $op ||= '='
1224 0 0 $depth ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
99 0 0 0 $args{'tables'} || Carp::croak(q[Missing 'tables' argument])
100 0 0 0 $args{'tables_sql'} || $tables
104 0 0 0 delete $args{'query'} || delete $args{'where'}
151 0 0 0 $args{'db'}->dbh || Carp::croak(q[Missing 'dbh' argument and ], q[could not retreive one from the 'db' agument - ], $args{'db'}->error)
313 0 0 0 $meta->{$obj_class} || $obj_class->meta
326 0 0 0 $all_columns->{$table} ||= $my_columns
342 0 0 0 $meta->{$obj_class} || ($obj_class ? $obj_class->meta : undef)
387 0 0 0 $query_only_columns or not $select_columns{$column}
426 0 0 0 $query_is_sql or $scalar_ref
430 0 0 0 $obj_meta->column($column) || $obj_meta->method_column($column)
433 0 0 0 $get_method or $set_method
450 0 0 0 $val->{'any_in_array'} || $val->{'all_in_array'}
451 0 0 0 $val->{'any_in_array'} or $val->{'all_in_array'}
467 0 0 0 $column_arg eq $column || $column_arg eq "!$column"
500 0 0 0 $op eq 'IS' or $op eq 'IS NOT'
512 0 0 0 $not || $op eq '<>'
699 0 0 0 $db && $db->database_version >= 5000012 || $dbh->get_info(18) =~ /5\.\d+\.(?:1[2-9]|[2-9]\d)/
747 0 0 0 $$hints{"t$i"} || ($i == 1 ? $hints : undef)
750 0 0 0 $oracle_hack || keys %$hints
0 0 0 $hints->{'t1'} || $hints
761 0 0 0 $select ||= join(",\n", map({" $_";} @select_columns))
769 0 0 0 $hints->{'t1'} || $hints
864 0 0 0 $op eq 'ANY IN SET' or $op eq 'ALL IN SET'
0 0 0 $op eq 'ANY IN ARRAY' or $op eq 'ALL IN ARRAY'
886 0 0 0 $op eq 'ANY IN SET' or $op eq 'ALL IN SET'
0 0 0 $op eq 'ANY IN ARRAY' or $op eq 'ALL IN ARRAY'
890 0 0 0 $should_inline || $force_inline
896 0 0 0 $should_inline || $force_inline
903 0 0 0 $should_inline || $force_inline
908 0 0 0 $should_inline || $force_inline
916 0 0 0 $op eq 'IS' or $op eq 'IS NOT'
927 0 0 0 $not || $op eq '<>'
949 0 0 0 $should_inline or $force_inline
1029 0 0 0 $should_inline or $force_inline
1062 0 0 0 $force_inline || $db && $col_meta && $col_meta->should_inline_value($db, $_)
1077 0 0 0 $op eq 'ALL IN SET' || $op eq 'ALL IN ARRAY'
1078 0 0 0 $op eq 'ANY IN SET' || $op eq 'ANY IN ARRAY'
1090 0 0 0 not $ref_type or $ref_type eq 'SCALAR'
1228 0 0 0 not $val_ref or $asis
1255 0 0 0 @$value or $allow_empty_lists
1258 0 0 0 $asis or $col_meta->type eq 'array'
0 0 0 $asis or $col_meta->type eq 'array' or $col_meta->type eq 'set' and $depth == 1