blib/lib/Jifty/DBI/Collection.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 83 | 151 | 54.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
227 | 3 | 7 | 8 | $order[0] and $order[-1] eq $main_pkey |
410 | 8 | 306 | 19 | $$self{'joins'} and keys %{$$self{'joins'};} |
495 | 243 | 0 | 3 | $$self{'columns'} and @{$$self{'columns'};} |
602 | 0 | 2 | 1 | @_ and $$self{'joins'}{$_[0]} |
988 | 1 | 0 | 2 | 0 < $args{'max'}-- and $sth->fetch |
1069 | 3 | 228 | 715 | ref $self && $$self{'record_class'} |
1237 | 279 | 0 | 0 | defined $args{'leftjoin'} and not defined $args{'alias'} |
1267 | 271 | 8 | 0 | $$self{'joins'}{$args{'alias'}} && $$self{'joins'}{$args{'alias'}}{'class'} |
1275 | 7 | 260 | 12 | $column_obj and $column_obj->encode_on_select |
267 | 0 | 12 | $column_obj and $column_obj->encode_on_select and not $args{'operator'} =~ /IS/ | |
1320 | 29 | 0 | 2 | $value_ref ne 'ARRAY' and $args{'value'}->isa('Jifty::DBI::Record') |
1323 | 0 | 0 | 2 | defined $column_obj && defined $column_obj->by |
1331 | 0 | 60 | 2 | defined $column_obj && defined $column_obj->by |
1335 | 61 | 0 | 1 | ref $_ && $_->isa('Jifty::DBI::Record') |
1390 | 0 | 56 | 223 | defined $args{'value'} and $args{'quote_value'} |
1400 | 6 | 88 | 129 | $column_obj and not $case_sensitive |
94 | 61 | 68 | $column_obj and not $case_sensitive and not $column_obj->is_string | |
1404 | 156 | 0 | 67 | not $case_sensitive and $self->_handle->case_sensitive |
1533 | 0 | 16 | 308 | defined $_ && length $_ |
1551 | 0 | 0 | 312 | $_ && @$_ |
1699 | 22 | 1 | 6 | $rowhash{'function'} and not defined $rowhash{'column'} |
0 | 0 | 23 | defined $rowhash{'alias'} and $rowhash{'column'} | |
1788 | 0 | 0 | 3 | $rowhash{'alias'} and $rowhash{'column'} |
2179 | 0 | 0 | 3 | $table eq $self->table and not $args{'alias'} |
2313 | 0 | 0 | 0 | defined $ret and not $ret |
line | l | !l | condition |
---|---|---|---|
340 | 0 | 78 | shift() || 0 |
746 | 1 | 0 | $column->by || 'id' |
757 | 1 | 0 | $column->by || 'id' |
1020 | 6 | 0 | $$self{'items'} || [] |
1381 | 0 | 0 | $$self{'joins'}{$args{'leftjoin'}}{'criteria'}{$clause_id} ||= [] |
1385 | 5 | 274 | $$self{'restrictions'}{$clause_id} ||= [] |
1432 | 279 | 0 | $args{'entry_aggregator'} || '' |
1506 | 1 | 0 | $$self{'restrictions'}{$clause} ||= [] |
1576 | 0 | 0 | $$self{$type} || '' |
0 | 0 | $value || '' | |
1637 | 7 | 0 | $$self{'order_by'} || [] |
1655 | 8 | 0 | $$self{'order_by'} ||= [] |
1658 | 8 | 0 | $$self{'order_by'} || [] |
1823 | 5 | 0 | shift() || die('Missing parameter') |
2158 | 0 | 3 | $args{'alias'} || 'main' |
2178 | 0 | 3 | $$self{'columns'} ||= [] |
2180 | 0 | 3 | $args{'alias'} || 'main' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
95 | 2 | 228 | 0 | ref $proto || $proto |
236 | 36 | 0 | 0 | $$base_row{$table . '_id'} or $main_pkey |
541 | 18 | 0 | 998 | $_->virtual || $_->computed |
621 | 0 | 3 | 0 | $args{'reference'} ||= $args{'name'} |
641 | 1 | 2 | 0 | UNIVERSAL::isa($args{'class'}, 'Jifty::DBI::Record') or UNIVERSAL::isa($args{'class'}, 'Jifty::DBI::Collection') |
813 | 9 | 2 | 67 | $self->distinct_required or $self->prefetch_related |
1074 | 228 | 3 | 0 | ref $self || $self |
1248 | 271 | 0 | 0 | not defined $args{'table'} or $args{'table'} eq $self->table |
1314 | 2 | 277 | 0 | $args{'subclause'} || $qualified_column |
1432 | 0 | 274 | 5 | lc($args{'entry_aggregator'} || '') eq 'none' or not @$restriction |
2056 | 0 | 0 | 0 | $$self{'must_redo_search'} or not $$self{'count_all'} |
2149 | 0 | 0 | 3 | $args{'table'} || do { if (my $alias = $args{'alias'}) { $alias =~ s/_\d+$//; $alias; } else { $self->table; } } |
2214 | 0 | 0 | 0 | eval { do { $dbh->column_info('', '', $table, '')->fetchall_arrayref([3]) } } or $dbh->selectall_arrayref("DESCRIBE $table;") |
0 | 0 | 0 | eval { do { $dbh->column_info('', '', $table, '')->fetchall_arrayref([3]) } } or $dbh->selectall_arrayref("DESCRIBE $table;") or $dbh->selectall_arrayref("DESCRIBE \u$table;") |