line |
true |
false |
branch |
33
|
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) { } |
58
|
0 |
410 |
if ref $p->{'-join_aliases'} ne 'ARRAY' or not @{$p->{'-join_aliases'};} |
117
|
0 |
242 |
if $args->{'hri_style'} and not $args->{'prune_null_branches'} |
128
|
68 |
174 |
!$args->{'collapse'} ? : |
139
|
14 |
1673 |
ref $attrs->{'select'}[$common{'val_index'}{$_}] ? : |
171
|
178 |
461 |
unless ($common_args->{'_as_fq_idx'}) |
178
|
2101 |
1777 |
if ($_ =~ /^ ([^\.]+) \. (.+) /x) { } |
226
|
110 |
48 |
if defined $rel_cols->{$rel}{$ri->{'fk_map'}{$_}} |
237
|
434 |
138 |
unless ($args->{'_parent_info'}{'underdefined'} or $args->{'_parent_info'}{'rev_rel_is_optional'}) |
238
|
178 |
256 |
unless $args->{'_parent_info'}{'rel_condition'} |
239
|
190 |
66 |
if exists $my_cols->{$col} |
246
|
604 |
35 |
if ($my_cols) |
255
|
121 |
518 |
if (not $collapse_map->{'-identifying_columns'} and $args->{'_parent_info'}{'collapser_reusable'}) |
268
|
17 |
27 |
if (not $collapse_map->{'-identifying_columns'} and $args->{'_parent_info'}{'is_single'} and @{$args->{'_parent_info'}{'collapse_on_idcols'};} and my(@native_nonnull_cols) = grep({not $native_cols->{$_}{'colinfo'}{'is_nullable'} if $native_cols->{$_}{'colinfo'};} keys %$native_cols)) |
279
|
72 |
0 |
if $native_cols->{$_}{'colinfo'} |
283
|
0 |
17 |
unless $args->{'_parent_info'}{'collapse_on_idcols'} |
302
|
444 |
57 |
if (not $collapse_map->{'-identifying_columns'} and $my_cols and my $idset = $self->_identifying_column_set({map({$_, $my_cols->{$_}{'colinfo'};} keys %$my_cols)})) |
314
|
204 |
240 |
unless $args->{'_parent_info'}{'collapse_on_idcols'} |
333
|
57 |
582 |
unless ($collapse_map->{'-identifying_columns'}) |
337
|
34 |
40 |
unless $relinfo->{$rel}{'is_single'} and $relinfo->{$rel}{'is_inner'} |
339
|
40 |
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)) |
351
|
40 |
17 |
if (@candidates) |
363
|
17 |
0 |
if (not $collapse_map->{'-identifying_columns'} || $args->{'premultiplied'} and $args->{'_is_top_level'}) |
375
|
0 |
10 |
if $relinfo->{$rel}{'is_single'} and $relinfo->{$rel}{'is_inner'} |
377
|
27 |
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)) { } |
384
|
10 |
17 |
if ($relinfo->{$rel}{'is_single'}) { } |
|
0 |
17 |
elsif (not $relinfo->{$rel}{'fk_map'}) { } |
403
|
17 |
0 |
if (my $set = $self->_identifying_column_set([keys %$defined_cols_parent_side])) { } |
418
|
17 |
0 |
unless ($uncollapsible_chain) |
433
|
0 |
0 |
unless scalar @$a <=> scalar @$b |
442
|
67 |
572 |
if ($args->{'_parent_info'}{'underdefined'}) { } |
|
0 |
572 |
elsif (not $collapse_map->{'-identifying_columns'}) { } |
443
|
67 |
0 |
$collapse_map->{'-identifying_columns'} ? : |
451
|
0 |
0 |
@{$args->{'_rel_chain'};} > 1 ? : |
461
|
178 |
394 |
unless $args->{'_parent_info'}{'collapse_on_idcols'} |
497
|
256 |
138 |
grep({not +($_->{'attrs'}{'join_type'} || '') =~ /^left/i;} values %{$self->reverse_relationship_info($rel);}) ? : |
|
121 |
273 |
$relinfo->{$rel}{'is_single'} && $relinfo->{$rel}{'is_inner'} && @{$collapse_map->{'-identifying_columns'};} ? : |
502
|
165 |
229 |
if $relinfo->{$rel}{'is_single'} |
503
|
270 |
124 |
unless $relinfo->{$rel}{'is_inner'} |