| line |
true |
false |
branch |
|
27
|
97 |
867 |
if (not defined $pre && length $pre) { } |
|
|
360 |
507 |
elsif (ref $pre eq 'ARRAY') { } |
|
|
97 |
410 |
elsif (ref $pre eq 'HASH') { } |
|
|
0 |
410 |
elsif (ref $pre) { } |
|
55
|
0 |
410 |
if ref $$p{-'join_aliases'} ne 'ARRAY' or not @{$$p{-'join_aliases'};} |
|
60
|
0 |
410 |
unless $rel_info |
|
63
|
103 |
307 |
$alias =~ /^.*?\.(.+)$/ ? : |
|
100
|
0 |
233 |
if $args->{'hri_style'} and not $args->{'prune_null_branches'} |
|
113
|
68 |
165 |
!$args->{'collapse'} ? : |
|
124
|
14 |
1638 |
ref $attrs->{'select'}[$common{'val_index'}{$_}] ? : |
|
131
|
152 |
13 |
if @{$$collapse_map{-'identifying_columns'};} |
|
143
|
223 |
10 |
$args->{'eval'} ? : |
|
162
|
168 |
392 |
unless ($common_args->{'_as_fq_idx'}) |
|
169
|
1952 |
1722 |
if ($_ =~ /^ ([^\.]+) \. (.+) /x) { } |
|
191
|
377 |
0 |
if (ref $cond eq 'HASH' and keys %$cond and not defined &first(sub {
not $_ =~ /^foreign\./;
}
, keys %$cond) and not defined &first(sub {
not $_ =~ /^self\./;
}
, values %$cond)) |
|
214
|
89 |
34 |
if defined $rel_cols->{$rel}{$ri->{'fk_map'}{$_}} |
|
225
|
394 |
117 |
unless ($args->{'_parent_info'}{'underdefined'} or $args->{'_parent_info'}{'rev_rel_is_optional'}) |
|
226
|
168 |
226 |
unless $args->{'_parent_info'}{'rel_condition'} |
|
227
|
173 |
53 |
if exists $my_cols->{$col} |
|
234
|
540 |
20 |
if ($my_cols) |
|
243
|
560 |
0 |
unless ($$collapse_map{-'identifying_columns'}) |
|
245
|
97 |
463 |
if $args->{'_parent_info'}{'collapser_reusable'} |
|
249
|
422 |
41 |
if (not $$collapse_map{-'identifying_columns'} and $my_cols and my $idset = $self->_identifying_column_set({map({$_, $my_cols->{$_}{'colinfo'};} keys %$my_cols)})) |
|
261
|
185 |
237 |
unless $args->{'_parent_info'}{'collapse_on_idcols'} |
|
280
|
41 |
519 |
unless ($$collapse_map{-'identifying_columns'}) |
|
284
|
25 |
27 |
unless $relinfo->{$rel}{'is_single'} and $relinfo->{$rel}{'is_inner'} |
|
286
|
27 |
0 |
if (my $rel_collapse = $relinfo->{$rel}{'rsrc'}->_resolve_collapse({'as', $rel_cols->{$rel}, '_rel_chain', [@{$args->{'_rel_chain'};}, $rel], '_parent_info', {'underdefined', 1}}, $common_args)) |
|
298
|
27 |
14 |
if (@candidates) |
|
310
|
14 |
0 |
if (not $$collapse_map{-'identifying_columns'} || $args->{'premultiplied'} and $args->{'_is_top_level'}) |
|
322
|
0 |
8 |
if $relinfo->{$rel}{'is_single'} and $relinfo->{$rel}{'is_inner'} |
|
324
|
22 |
0 |
if (my $clps = $relinfo->{$rel}{'rsrc'}->_resolve_collapse({'as', $rel_cols->{$rel}, '_rel_chain', [@{$args->{'_rel_chain'};}, $rel], '_parent_info', {'underdefined', 1}}, $common_args)) { } |
|
331
|
8 |
14 |
if ($relinfo->{$rel}{'is_single'}) { } |
|
|
0 |
14 |
elsif (not $relinfo->{$rel}{'fk_map'}) { } |
|
350
|
14 |
0 |
if (my $set = $self->_identifying_column_set([keys %$defined_cols_parent_side])) { } |
|
365
|
14 |
0 |
unless ($uncollapsible_chain) |
|
374
|
0 |
0 |
unless scalar @$a <=> scalar @$b |
|
382
|
49 |
511 |
if ($args->{'_parent_info'}{'underdefined'}) { } |
|
|
0 |
511 |
elsif (not $$collapse_map{-'identifying_columns'}) { } |
|
383
|
49 |
0 |
$$collapse_map{-'identifying_columns'} ? : |
|
391
|
0 |
0 |
@{$args->{'_rel_chain'};} > 1 ? : |
|
401
|
168 |
343 |
unless $args->{'_parent_info'}{'collapse_on_idcols'} |
|
422
|
430 |
0 |
if ref $_->{'cond'} eq 'HASH' |
|
433
|
226 |
117 |
&first(sub {
not +($_->{'attrs'}{'join_type'} || '') =~ /^left/i if ref $_->{'cond'} eq 'HASH';
}
, values %{$self->reverse_relationship_info($rel);}) ? : |
|
|
97 |
246 |
$relinfo->{$rel}{'is_single'} && $relinfo->{$rel}{'is_inner'} && @{$$collapse_map{-'identifying_columns'};} ? : |
|
438
|
132 |
211 |
if $relinfo->{$rel}{'is_single'} |
|
439
|
243 |
100 |
unless $relinfo->{$rel}{'is_inner'} |